skip to navigation
skip to content

Not Logged In

django-concurrency 0.5

Optimistic locking library for Django

Latest Version: 0.8.1

django-concurrency is a optimistic locking library for Django 1.4.

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

How it works

sample code:

from concurrency.fields import IntegerVersionField

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

Now if if you try:

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

you will get a RecordModifedError on

File Type Py Version Uploaded on Size
django-concurrency-0.5.tar.gz (md5) Source 2013-06-08 32KB
  • Downloads (All Versions):
  • 24 downloads in the last day
  • 237 downloads in the last week
  • 941 downloads in the last month