This release is a pre-release and may not be stable for production use.
Django Concurrency
django-concurrency is an optimistic lock [1] implementation for Django.
Supported Django versions: 1.7.x 1.8.x, 1.9rc1.
It prevents users from doing concurrent editing in Django both from UI and from a django command.
How it works
sample code:
from django.db import models
from concurrency.fields import IntegerVersionField
class ConcurrentModel( models.Model ):
version = IntegerVersionField( )
name = models.CharField(max_length=100)
Now if you try:
a = ConcurrentModel.objects.get(pk=1) a.name = '1' b = ConcurrentModel.objects.get(pk=1) b.name = '2' a.save() b.save()
you will get a RecordModifiedError on b.save()
Similar projects
Other projects that handle concurrent editing are django-optimistic-lock and django-locking anyway concurrency is “a batteries included” optimistic lock management system, here some features not available elsewhere:
can be applied to any model; not only your code (ie. django.contrib.auth.Group)
handle list-editable ChangeList. (handle #11313)
manage concurrency conflicts in admin’s actions
can intercept changes performend out of the django app (ie using pgAdmin, phpMyAdmin, Toads) (using TriggerVersionField)
can be disabled if needed (see disable_concurrency)
Links
Stable |
|||||
Development |
|||||
Project home page: |
|||||
Issue tracker: |
|||||
Download: |
|||||
Documentation: |
|||||
_list-editable: https://django-concurrency.readthedocs.org/en/latest/admin.html#list-editable
Metadata
Release files for django-concurrency 1.0c1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-concurrency-1.0c1.tar.gz | 22.0 kB | Without provenance | Details for django-concurrency-1.0c1.tar.gz |
Release files / django-concurrency-1.0c1.tar.gz
| Download URL | django-concurrency-1.0c1.tar.gz |
|---|---|
| Size | 22.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aedbdcc622e70c6fd02b8819805b8ee1f16e8d84b6187d35a5a1e2a102df376d
|
|
BLAKE2b-256 checksum How to use checksums |
0b260e1e56212a9abbd83ebe9d7a3a00b5e674b2ff79d5b7bd45d2b2b4256d87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-concurrency 1.0c1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.