diff options
| author | Premkumar Chalmeti <premkumarchalmeti@gmail.com> | 2021-08-09 14:06:55 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-09 10:36:55 +0200 |
| commit | fffeb5df554c93f0f9e634a820323b4771e9bfc7 (patch) | |
| tree | 678046fbd6c665036e37fa2d511b617fba41a187 | |
| parent | fc2bd40fc76996306efc1f8de581708d8c5a2943 (diff) | |
Removed redundant definition of UserModel in ModelBackend.with_perm().
| -rw-r--r-- | django/contrib/auth/backends.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/django/contrib/auth/backends.py b/django/contrib/auth/backends.py index ac86749e53..0ddbd9ca77 100644 --- a/django/contrib/auth/backends.py +++ b/django/contrib/auth/backends.py @@ -134,7 +134,6 @@ class ModelBackend(BaseBackend): 'The `perm` argument must be a string or a permission instance.' ) - UserModel = get_user_model() if obj is not None: return UserModel._default_manager.none() |
