from django.db import models import django.utils.timezone as timezone class Doc(models.Model): add_date = models.DateTimeField('保存日期',default = timezone.now) mod_date = models.DateTimeField('最后修改日期', auto_now = True)
posted on 2018-11-12 01:55 王紫檀 阅读(470) 评论(0) 编辑 收藏 举报