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.

0004_alter_user_username_opts.py 785B

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