Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

0008_alter_user_username_max_length.py 752B

123456789101112131415161718192021222324
  1. from django.contrib.auth import validators
  2. from django.db import migrations, models
  3. class Migration(migrations.Migration):
  4. dependencies = [
  5. ('auth', '0007_alter_validators_add_error_messages'),
  6. ]
  7. operations = [
  8. migrations.AlterField(
  9. model_name='user',
  10. name='username',
  11. field=models.CharField(
  12. error_messages={'unique': 'A user with that username already exists.'},
  13. help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.',
  14. max_length=150,
  15. unique=True,
  16. validators=[validators.UnicodeUsernameValidator()],
  17. verbose_name='username',
  18. ),
  19. ),
  20. ]