These are chat archives for django/django

Dec 2014
Dec 19 2014 14:39
hi all
i have updated my model with:
gender = models.CharField('gender', max_length=30, choices=settings.GENDER, default=settings.GENDER[0][0], null=True)
when i do
$ schemamigration projectname --auto

Terminal says:

The field 'User.gender' does not have a default specified, yet is NOT NULL.

i have a default value.. so i dont understand the question
Igor Petrov
Dec 19 2014 16:03
Is it new field in your model?