Optimistic lock implementation for Django. Prevents users from doing concurrent editing.
Project description
django-concurrency is an optimistic lock [1] implementation for Django.
Tested with: 1.4.x, 1.5.x, 1.6.x, trunk.
It prevents users from doing concurrent editing in Django both from UI and from a django command.
How it works
sample code:
from concurrency.fields import IntegerVersionField class ConcurrentModel( models.Model ): version = IntegerVersionField( )
Now if you try:
a = ConcurrentModel.objects.get(pk=1) b = ConcurrentModel.objects.get(pk=1) a.save() b.save()
you will get a RecordModifiedError on b.save()
Links
Stable |
|||||
Development |
|||||
Project home page: |
|||||
Issue tracker: |
|||||
Download: |
|||||
Documentation: |
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.7.1.tar.gz
(20.1 kB
view details)
File details
Details for the file django-concurrency-0.7.1.tar.gz
.
File metadata
- Download URL: django-concurrency-0.7.1.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eab655dc3fdee2ec8c2e8a93f76d2e6995ee9af5dc0f25d804d67a5a013c9046 |
|
MD5 | 0bc1f0e10470394900e1f0aec0eca9a1 |
|
BLAKE2b-256 | b57a71069feccc65ade370a74e3f935b45cb4483b5a0ad57a1347e05fc5d2f09 |