On utilise un vrai dict

This commit is contained in:
Ludovic Stephan 2020-07-26 22:24:41 +02:00
parent effed1b5c5
commit f990934425

View file

@ -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 {}