Demo entry 6772029

code

   

Submitted by anonymous on Nov 23, 2018 at 08:38
Language: Python. Code size: 317 Bytes.

class BaseModel(models.Model): 
 
    created_at = models.DateTimeField( 
        verbose_name=u"创建时间", auto_now_add=True, null=True, editable=True, ) 
    updated_at = models.DateTimeField( 
        editable=True, verbose_name=u"最后修改时间", auto_now=True, null=True) 
  
    class Meta: 
        abstract = True

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).