I want to extent custom user model in django.I copy paste code from django official website. When i want to migrate it it throw error
TypeError: expected str
Your problem is this line in your migration file:
field=models.DateField(default=1),
Change it to
field=models.DateField(null=True),
or
field=models.CharField(max_length=20),
yes, the semicolon at the back is removed in order to automatically modify the table in the database, like this line:
signdate = models.DateField(verbose_name="Sign Date", blank=True, null=True)