Skip to content

Commit 2c6498d

Browse files
committed
Trying to fix date format
1 parent ded00c4 commit 2c6498d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

partner_programs/views.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,18 @@ def post(self, request, *args, **kwargs):
6969
if data.get("test") == "test":
7070
return Response(status=status.HTTP_200_OK)
7171
print(data)
72-
data["birthday"] = date_to_iso(data["birthday"])
7372
user_fields = (
7473
"email",
7574
"password",
7675
"first_name",
7776
"last_name",
7877
"patronymic",
79-
"birthday",
8078
"city",
8179
)
8280
# fixme: should we set verification_date?, if no then we need to ad them to ClickUp list
8381
user = User.objects.create(
8482
**{field_name: data[field_name] for field_name in user_fields},
83+
birthday=date_to_iso(data["birthday"]),
8584
is_active=True, # bypass email verification
8685
onboarding_stage=None, # bypass onboarding
8786
)

0 commit comments

Comments
 (0)