修改数据默认显示后还是无法显示标题
from django.db import models # Create your models here. class Article(models.Model): title = models.CharField(max_length=32,default='Title') content = models.TextField(null=True) def __str__(self): return self.title
from django.db import models # Create your models here. class Article(models.Model): title = models.CharField(max_length=32,default='Title') content = models.TextField(null=True) def __str__(self): return self.title
2019-04-25
举报