Skip to content

Commit

Permalink
fix: sign up form
Browse files Browse the repository at this point in the history
  • Loading branch information
Shavkatjon-O committed Sep 9, 2024
1 parent fdf7a26 commit a47f6dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/users/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

class SignUpSerializer(serializers.ModelSerializer):
password = serializers.CharField(write_only=True)
user_type = serializers.CharField(write_only=True)

class Meta:
model = User
Expand All @@ -17,6 +18,7 @@ class Meta:
)

def create(self, validated_data):
print(validated_data)
user = User.objects.create_user(
email=validated_data["email"],
user_type=validated_data["user_type"],
Expand Down

0 comments on commit a47f6dc

Please sign in to comment.