From fdf7a26934ccabd6e9ce503ea8ca03572ede4b03 Mon Sep 17 00:00:00 2001 From: Shavkatjon Odamboyev <153182519+Shavkatjon-O@users.noreply.github.com> Date: Mon, 9 Sep 2024 13:50:04 +0500 Subject: [PATCH] fix: migrations --- apps/users/serializers.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/users/serializers.py b/apps/users/serializers.py index 185a5cc..cf3b6a8 100644 --- a/apps/users/serializers.py +++ b/apps/users/serializers.py @@ -12,12 +12,15 @@ class Meta: model = User fields = ( "email", + "user_type", "password", ) def create(self, validated_data): user = User.objects.create_user( - email=validated_data["email"], password=validated_data["password"] + email=validated_data["email"], + user_type=validated_data["user_type"], + password=validated_data["password"], ) return user @@ -39,6 +42,7 @@ class Meta: "employment_start_date", "skills", "image", + "user_type", ) @@ -57,4 +61,5 @@ class Meta: "employment_start_date", "skills", "image", + "user_type", )