django-lock-tokens icon indicating copy to clipboard operation
django-lock-tokens copied to clipboard

Feature request: register user in lock token

Open stanim opened this issue 6 years ago • 1 comments

Would it be possible to register the user in the lock token? Sometimes it is unclear who locked the page.

stanim avatar Jan 14 '20 09:01 stanim

Hello @stanim,

As stated in the app description, the locking mechanism provided by django-lock-tokens is not user based. That's why a lock is not tied to a user. It is supposed to also work for use cases like unauthentified resource locking.

Of course, if you use the for example django admin locking feature, this would make sense to attach a user to the lock token. We could imagine adding a nullable field (e.g. locked_by) with a foreign key to the project's user model, and set it when it is possible.

Unfortunately I don't have much time right now to develop new features for this app, but I would be more than happy to review and discuss a pull-request for this feature!

rparent avatar Jan 22 '20 12:01 rparent