Optimistic locking library for Django
Project description
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
Docs: http://readthedocs.org/docs/django-concurrency/en/latest/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-concurrency-0.4.tar.gz
(32.3 kB
view details)
File details
Details for the file django-concurrency-0.4.tar.gz
.
File metadata
- Download URL: django-concurrency-0.4.tar.gz
- Upload date:
- Size: 32.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 619c508f61c78354d495d42b9b37f81b9c05b7264a4429ab2dc5bc30df054781 |
|
MD5 | 3d92d461be782b3a76fd2d8e0c2b0312 |
|
BLAKE2b-256 | 03ea7ffb42fe213c391a32608904294c61d816527c3d421730356f84d0894c74 |