django-revisionfield

0.2.2 BSD License    
  UNRATED

  123 downloads

An model field that auto increments every time the model is saved

description

download

specs

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

#model field #revision field #Django #model #revision #field

0 User reviews so far.

SUBMIT