skip to navigation
skip to content

Not Logged In

django-concurrency 0.6

Optimistic locking library for Django

Latest Version: 0.8.1

django-concurrency is an optimistic locking library for Django.

Tested with: 1.4.8, 1.5.4, 1.6b4, trunk.

It prevents users from doing concurrent editing in Django both from UI and from a django command.

How it works

sample code:

from concurrency.fields import IntegerVersionField

class ConcurrentModel( models.Model ):
    version = IntegerVersionField( )

Now if you try:

a = ConcurrentModel.objects.get(pk=1)
b = ConcurrentModel.objects.get(pk=1)

you will get a RecordModifiedError on

File Type Py Version Uploaded on Size
django-concurrency-0.6.tar.gz (md5) Source 2013-10-01 31KB
  • Downloads (All Versions):
  • 12 downloads in the last day
  • 206 downloads in the last week
  • 870 downloads in the last month