fix code-style

This commit is contained in:
Benjamin Dauvergne 2021-04-02 11:30:08 +02:00
parent 4af9b0126f
commit a9b667fd89
1 changed files with 2 additions and 2 deletions

View File

@ -1151,8 +1151,8 @@ def same_origin(url1, url2):
def simulate_authentication(request, user, method, backend=None, service=None, **kwargs):
'''Simulate a normal login by eventually forcing a backend attribute on the
user instance'''
"""Simulate a normal login by eventually forcing a backend attribute on the
user instance"""
if not getattr(user, 'backend', None) and not backend:
backend = 'authentic2.backends.models_backend.ModelBackend'
if backend: