default='Title'
class Article(models.Model): title = models.CharField(max_length=32, default='Title') content = models.TextField(null=True)
其中default='Title'在哪怎么能体现呢?
class Article(models.Model): title = models.CharField(max_length=32, default='Title') content = models.TextField(null=True)
其中default='Title'在哪怎么能体现呢?
2018-07-30
举报