from django.db import models from apps.system.models import CommonAModel # Create your models here. class Standard(CommonAModel): status_choices = ( ('现行', '现行'), ('即将实施', '即将实施'), ('作废', '作废'), ('废止', '废止') ) name = models.CharField('标准名称', max_length=1000) code = models.CharField('编号', max_length=30, null=True, blank=True) publish_date = models.DateField('发布日期') implement_date = models.DateField('实施日期') status = models.CharField('状态', max_length=50, choices=status_choices, default='状态') pass class ImplementRule(CommonAModel): pass