Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f4da68a463
Fetching contributors…

Cannot retrieve contributors at this time

file 12 lines (8 sloc) 0.274 kb
1 2 3 4 5 6 7 8 9 10 11 12
from django.db import models


class ModelBase(models.Model):
    created = models.DateTimeField(auto_now_add=True)
    modified = models.DateTimeField(auto_now=True)

    objects = models.Manager()

    class Meta:
        abstract = True
        get_latest_by = 'created'
Something went wrong with that request. Please try again.