fix code-style
This commit is contained in:
parent
4af9b0126f
commit
a9b667fd89
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue