Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django admin auto update date field

date_created = models.DateTimeField(auto_now_add=True)
date_updated = models.DateTimeField(auto_now=True)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #admin #auto #update #date #field
ADD COMMENT
Topic
Name
1+6 =