Skip to content

Commit

Permalink
drop support for Django<1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed May 5, 2020
1 parent 040f2e9 commit a2f30bd
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions email_auth/migrations/0004_auto_20170411_1733.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# Generated by Django 1.10.7 on 2017-04-11 15:33
from __future__ import unicode_literals

from django import VERSION

from django.db import migrations, models


Expand All @@ -15,20 +13,18 @@ class Migration(migrations.Migration):

operations = []

if VERSION >= (1, 10):
from django.contrib.auth import validators
from django.utils import six

operations.append(
migrations.AlterField(
model_name='user',
name='username',
field=models.CharField(
error_messages={'unique': 'A user with that username already exists.'},
help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.',
max_length=150,
unique=True,
validators=[validators.UnicodeUsernameValidator() if six.PY3 else validators.ASCIIUsernameValidator()],
verbose_name='username'),
)
from django.contrib.auth import validators

operations.append(
migrations.AlterField(
model_name='user',
name='username',
field=models.CharField(
error_messages={'unique': 'A user with that username already exists.'},
help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.',
max_length=150,
unique=True,
validators=[validators.UnicodeUsernameValidator()],
verbose_name='username'),
)
)

0 comments on commit a2f30bd

Please sign in to comment.