forked from saxix/django-concurrency
-
Notifications
You must be signed in to change notification settings - Fork 0
Optimistic lock implementation for Django. Prevents users from doing concurrent editing.
License
boatcoder/django-concurrency
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
================== Django Concurrency ================== .. image:: https://secure.travis-ci.org/saxix/django-concurrency.png?branch=master :target: http://travis-ci.org/saxix/django-concurrency/ 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) a.save() b.save() you will get a ``RecordModifedError`` on ``b.save()`` Links ~~~~~ * Project home page: https://github.com/saxix/django-concurrency * Issue tracker: https://github.com/saxix/django-concurrency/issues?sort * Download: http://pypi.python.org/pypi/django-concurrency/ * Docs: http://readthedocs.org/docs/django-concurrency/en/latest/
About
Optimistic lock implementation for Django. Prevents users from doing concurrent editing.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- Python 97.4%
- HTML 1.7%
- Makefile 0.9%