Fix account create
This commit is contained in:
parent
04267ef76d
commit
14713ea630
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ 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:
|
if login_clipper and not username:
|
||||||
# à 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