django-concurrencyDjango concurrent model | |
Download |
django-concurrency Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Stefano Apostolico
- Publisher web site:
- https://github.com/saxix/
django-concurrency Tags
django-concurrency Description
django-concurrency is an optimistic locking library for Django 1.4.How it worksSample code:from concurrency.fields import IntegerVersionFieldclass 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()Product's homepage
django-concurrency Related Software