django-revisionfield

  123 downloads
0.2.2 BSD License    
  not rated
An model field that auto increments every time the model is saved

description

download

specifications

django-revisionfield is a model field that auto increments every time the model is saved.

Usage

Import the field and use it on a model:

from django.db import models
from django_revisionfield import RevisionField

class Something(models.Model):
 name = models.CharField(max_length=200)
 revision = RevisionField()


Every time the model is saved, its revision will be updated. The current implementation uses a global revision, thus values may jump unexpectedly (due to other models being saved).
READ MORE   
Last updated on November 26th, 2011

0 User reviews so far.

SUBMIT