django-concurrency
django-concurrency copied to clipboard
Optimistic lock implementation for Django. Prevents users from doing concurrent editing.
I'm trying to understand if django-concurrency is a good solution for my problem. I have two models: ``` class Order: status = CharField() class PushToMiddleware: order = ForeignKey(Order) ``` the...
When we run security scans on the form that uses "django-concurrency form" then the logs are polluted with messages like: `ERROR (django.security.VersionError) -5 OR 425=(SELECT 709 FROM PG_SLEEP(15)) ` `ERROR...
Looking at: https://github.com/saxix/django-concurrency/blob/ff8eecf9198cefba9ad411371efe1fc30d796d3c/src/concurrency/fields.py#L260-L276 It appears that even if you're using a TriggerVersionField, the version is still incremented on the Python side on save. Wouldn't this cause an UPDATE, triggering the...
During migrations (after concurrency has been added I'm running into this: ``` CREATE OR REPLACE FUNCTION func_concurrency_games_gamecontext_version() RETURNS TRIGGER as ' BEGIN NEW.version = OLD.version +1; RETURN NEW; END; '...
Suppose we have a model, class User(models.Model): version = AutoIncVersionField() id = models.UUIDField(primary_key=True, default=uuid.uuid4) name = models.CharField(max_length=255) If we create the object using create, we are getting the expected version...
I am getting **concurrency.exceptions.RecordModifiedError: Problem installing fixture*** Record has been modified** when trying to load fixtures. Command: python manage.py loaddata someJsonFile.json **Note:** Full error log and file path omitted Platform:...
In latest version of the setuptools django-concurrency package can not be installed. `ownloading django-concurrency-2.5.tar.gz (59 kB) Preparing metadata ([setup.py](http://setup.py/)): started Preparing metadata ([setup.py](http://setup.py/)): finished with status 'error' error: subprocess-exited-with-error ×...