markdown
python
代码语言:javascript复制# Create your models here.
class Category(models.Model):
name = models.CharField(max_length=128, verbose_name='分类名', blank=False, null=False)
alias = models.CharField(max_length=128, verbose_name='别名', db_index=True)
date = models.DateTimeField(verbose_name='创建日期', auto_now_add=True)
display = models.BooleanField(verbose_name='显示', default=True, db_index=True)
sort = models.IntegerField(verbose_name='排序', default=0, db_index=True)
class Meta:
verbose_name = "分类"
verbose_name_plural = "分类管理"
def __str__(self):
return self.name
代码
代码语言:javascript复制var aa=123
console.log(aa)
h2
h3
h4
- 1
- 2
- 1
1 | 2 | 3 |
---|---|---|
1 | 2 | 3 |
aaaa