Skip to content

Commit

Permalink
fix: migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Shavkatjon-O committed Sep 9, 2024
1 parent 41c14f1 commit fdf7a26
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/users/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -39,6 +42,7 @@ class Meta:
"employment_start_date",
"skills",
"image",
"user_type",
)


Expand All @@ -57,4 +61,5 @@ class Meta:
"employment_start_date",
"skills",
"image",
"user_type",
)

0 comments on commit fdf7a26

Please sign in to comment.