From e66df8246e30a27742d0e3b03c0f1124702e5d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9=20=D0=9D=D0=B8?= =?UTF-8?q?=D0=BA=D1=83=D0=BB=D0=B8=D0=BD?= Date: Mon, 14 Nov 2022 00:24:46 +0300 Subject: [PATCH] corrects users --- backend/api/serializers/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/serializers/users.py b/backend/api/serializers/users.py index 1eb7997..83ceecb 100644 --- a/backend/api/serializers/users.py +++ b/backend/api/serializers/users.py @@ -52,7 +52,7 @@ def create(self, validated_data): email=validated_data['email'], username=validated_data['username'], first_name=validated_data['first_name'], - last_name=validated_data['first_name'] + last_name=validated_data['last_name'] ) user.set_password(validated_data['password']) user.save()