Skip to content

Commit

Permalink
#354 Set authentication_backend path
Browse files Browse the repository at this point in the history
  • Loading branch information
viliambalaz committed Dec 7, 2021
1 parent 158b62f commit a63c710
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion chcemvediet/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
class AccountAdapter(InvitationsAdapter, DefaultAccountAdapter):
def login(self, request, user):
if not hasattr(user, u'backend'):
user.backend = u'{}.{}'.format(backend.__module__, backend.__class__.__name__)
user.backend = u'chcemvediet.auth_backends.AllauthAuthenticationBackendWithAdminLoginAs'
return super(AccountAdapter, self).login(request, user)
1 change: 0 additions & 1 deletion chcemvediet/apps/accounts/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ class ProfileAdmin(admin.ModelAdmin):
]
inlines = [
]
login_as_redirect_viewname = u'inforequests:mine'

def get_queryset(self, request):
queryset = super(ProfileAdmin, self).get_queryset(request)
Expand Down

0 comments on commit a63c710

Please sign in to comment.