Skip to content

Commit

Permalink
#354 Move AdminLoginAsMixin to poleno library
Browse files Browse the repository at this point in the history
  • Loading branch information
viliambalaz committed Nov 28, 2021
1 parent 19e8254 commit 7c2cc60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions chcemvediet/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
)

AUTHENTICATION_BACKENDS = (
u'chcemvediet.apps.accounts.backends.DjangoModelBackendWithAdminLoginAs',
u'chcemvediet.apps.accounts.backends.AllauthAuthenticationBackendWithAdminLoginAs',
u'poleno.utils.backends.DjangoModelBackendWithAdminLoginAs',
u'poleno.utils.backends.AllauthAuthenticationBackendWithAdminLoginAs',
)

TEMPLATE_LOADERS = (
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def create_users(self):

def setUp(self):
self.settings_override = override_settings(
AUTHENTICATION_BACKENDS=(u'chcemvediet.apps.accounts.backends.AdminLoginAsBackendMixin',),
AUTHENTICATION_BACKENDS=(u'poleno.utils.backends.AdminLoginAsBackendMixin',),
PASSWORD_HASHERS=(u'django.contrib.auth.hashers.MD5PasswordHasher',),
)
self.settings_override.enable()
Expand Down

0 comments on commit 7c2cc60

Please sign in to comment.