Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I enable token renewal for the LockableAdmin? #12

Open
Thijss opened this issue Aug 14, 2019 · 0 comments
Open

How do I enable token renewal for the LockableAdmin? #12

Thijss opened this issue Aug 14, 2019 · 0 comments

Comments

@Thijss
Copy link

Thijss commented Aug 14, 2019

  • django-lock-tokens version: 0.2.5
  • Django version: 1.11.23
  • Python version: 3.6.7
  • Operating System: linux

Description

I use LockableModelAdmin without any custom modifications. Right now the admin works as decribed in the readme: when you stay on the same page, the token expires after a certain amount of time (configured in settings).

I would like to change that behavior to:
when you stay on the same page, the token does not expire. This would require some js that keeps renewing the token. When looking at lock_tokens.js and LockTokens.hold_lock, this functionality seems already built-in. However, I don't see how I can enable it.

Any help is appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant