13 lines
465 B
Python
13 lines
465 B
Python
from django.db import models
|
|
from apps.system.models import CommonAModel
|
|
# Create your models here.
|
|
class Article(CommonAModel):
|
|
"""
|
|
文章
|
|
"""
|
|
title = models.CharField('标题', max_length=100)
|
|
content = models.TextField('内容')
|
|
author = models.CharField('作者', max_length=100, null=True, blank=True)
|
|
is_top = models.BooleanField('是否置顶', default=False)
|
|
is_published = models.BooleanField('是否发布', default=False)
|