feat(user): add user update endpoint with authorization checks and serializer support
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m9s

This commit is contained in:
2025-07-11 19:55:25 +05:00
parent 72c2ea1ecc
commit ff065fa4a9
3 changed files with 49 additions and 0 deletions

View File

@ -33,6 +33,21 @@ class UserProfileUpdateSerializer(serializers.ModelSerializer):
) # Only allow these fields
class UserUpdateSerializer(serializers.ModelSerializer):
class Meta: # type: ignore
model = User
fields = (
"id_card",
"mobile",
"first_name",
"last_name",
"address",
"dob",
"atoll",
"island",
)
class CustomUserSerializer(serializers.ModelSerializer):
"""serializer for the user object"""