Skip to content

Instantly share code, notes, and snippets.

@akkefa
Created October 24, 2016 14:43
Show Gist options
  • Save akkefa/7a61d94c6662393833f406bf559cf728 to your computer and use it in GitHub Desktop.
Save akkefa/7a61d94c6662393833f406bf559cf728 to your computer and use it in GitHub Desktop.
## Managing date at django database
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment