mirror of
https://github.com/django/django.git
synced 2025-09-28 13:04:54 +00:00
Removed redundant definition of UserModel in ModelBackend.with_perm().
This commit is contained in:
parent
fc2bd40fc7
commit
fffeb5df55
1 changed files with 0 additions and 1 deletions
|
@ -134,7 +134,6 @@ class ModelBackend(BaseBackend):
|
||||||
'The `perm` argument must be a string or a permission instance.'
|
'The `perm` argument must be a string or a permission instance.'
|
||||||
)
|
)
|
||||||
|
|
||||||
UserModel = get_user_model()
|
|
||||||
if obj is not None:
|
if obj is not None:
|
||||||
return UserModel._default_manager.none()
|
return UserModel._default_manager.none()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue