Skip to content

Instantly share code, notes, and snippets.

@victorono
Created January 5, 2014 19:35
Show Gist options
  • Save victorono/8272771 to your computer and use it in GitHub Desktop.
Save victorono/8272771 to your computer and use it in GitHub Desktop.
class BaseObject(models.Model):
id = models.AutoField(primary_key=True)
creation_datetime = models.DateTimeField(auto_now_add=True)
update_datetime = models.DateTimeField(auto_now=True)
class News(BaseObject):
class Meta:
managed = True
db_table = 'news'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment