Fix création compte

This commit is contained in:
Aurélien Delobelle 2016-09-06 19:49:28 +02:00
parent 120ffd574a
commit f614051365

View file

@ -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):
user = 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
# le user associé à ce clipper ne devrait pas encore exister
clipper = get_object_or_404(Clipper, username = login_clipper)