expected string or buffer ,date_re.match(value) django error

前端 未结 2 1647
感动是毒
感动是毒 2020-12-20 17:38

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         


        
2条回答
  •  不思量自难忘°
    2020-12-20 18:07

    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)
    

提交回复
热议问题