Fix création compte
This commit is contained in:
parent
120ffd574a
commit
f614051365
1 changed files with 2 additions and 1 deletions
|
@ -219,7 +219,8 @@ def account_form_set_readonly_fields(user_form, cof_form):
|
||||||
def get_account_create_forms(request=None, username=None, login_clipper=None):
|
def get_account_create_forms(request=None, username=None, login_clipper=None):
|
||||||
user = None
|
user = None
|
||||||
clipper = None
|
clipper = None
|
||||||
if login_clipper and not username:
|
if login_clipper and (login_clipper == username or not username):
|
||||||
|
print('trololo')
|
||||||
# à partir d'un clipper
|
# à partir d'un clipper
|
||||||
# le user associé à ce clipper ne devrait pas encore exister
|
# le user associé à ce clipper ne devrait pas encore exister
|
||||||
clipper = get_object_or_404(Clipper, username = login_clipper)
|
clipper = get_object_or_404(Clipper, username = login_clipper)
|
||||||
|
|
Loading…
Reference in a new issue