forked from rparent/django-lock-tokens
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When renewing or deleting (and perhaps getting?) a lock via the api an expired lock should be allowed. References issue rparent#6. See comment rparent#6 (comment) To enable this get_valid_lock_token_or_error now uses the new LockManager.get_for_contenttype_and_id. (LockManager's get_for_object now also uses this new method so there's no code duplication) Via the parameter allow_expired it is possible to exclude expired tokens, though the default is True.
- Loading branch information
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters