django-concurrency 0.5

Django concurrent model

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
MIT/X Consortium License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Stefano Apostolico
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Internet \ Django Plugins
django-concurrency is an optimistic locking library for Django 1.4.

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)
a.save()
b.save()


you will get a RecordModifedError on b.save()

Last updated on September 21st, 2012

requirements

#concurrent model #Django concurrency #locking library #Django #concurrent #model #concurrency

Add your review!

SUBMIT