Skip to content

Commit

Permalink
Merge pull request #2 from jonasundderwolf/chore/remove_django22_depr…
Browse files Browse the repository at this point in the history
…ecations

chore: Fix django 2.x deprecation
  • Loading branch information
MRigal authored Mar 28, 2020
2 parents c6fe8e2 + 630fb8b commit 6871284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin_locking/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class AdminLockingMixin(object):
def locking(self, request, object_id):
lock_url = request.POST.get('url')
if not lock_url or not request.user.is_authenticated():
if not lock_url or not request.user.is_authenticated:
return JsonResponse({}, status=400)

lock_timeout = getattr(settings, 'ADMIN_LOCKING_TIMEOUT', 15)
Expand Down

0 comments on commit 6871284

Please sign in to comment.