These are chat archives for django/django

19th
Dec 2014
Rob
@borriej
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
$ manage.py 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
@ipetrov
Dec 19 2014 16:03
Is it new field in your model?