Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 15 years ago.
如果我做对了,请考虑:
class Modelname(models.Model): """(Modelname description)""" confirmation_timestamp = models.DateTimeField(blank=True) def _set_confirmation(self, value): if not value: self.confirmation_timestamp = None else: self.confirmation_timestamp = datetime.datetime.now() def _get_confirmation(self): return bool(self.confirmation_timestamp) confirmation = property(_get_confirmation, _set_confirmation) confirmation.short_description = "Confirmation" confirmation.boolean = True # have it nicely displayed in admin
if I got this right, consider:
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
如果我做对了,请考虑:
if I got this right, consider: