1911A:增加抽象基类
作者:互联网
1.syl/utils/MyBaseModel.py增加抽象基类
from django.db import models class Base(models.Model): create_time = models.DateTimeField('创建时间', auto_now_add=True, null=True) update_time = models.DateTimeField('更新时间', auto_now=True, null=True) class Meta: abstract = True
标签:DateTimeField,models,auto,1911A,抽象,基类,null,True 来源: https://www.cnblogs.com/han0911/p/13938463.html