On utilise un vrai dict
This commit is contained in:
parent
effed1b5c5
commit
f990934425
1 changed files with 6 additions and 6 deletions
12
bds/views.py
12
bds/views.py
|
@ -84,12 +84,12 @@ class UserCreateView(StaffRequiredMixin, MultipleFormView):
|
|||
first_name = ""
|
||||
last_name = ""
|
||||
|
||||
return dict(
|
||||
username=clipper,
|
||||
email=email,
|
||||
first_name=first_name,
|
||||
last_name=last_name,
|
||||
)
|
||||
return {
|
||||
"username": clipper,
|
||||
"email": email,
|
||||
"first_name": first_name,
|
||||
"last_name": last_name,
|
||||
}
|
||||
else:
|
||||
return {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue