feat: Remove email field from user details response and enhance frontend user display
This commit is contained in:
@@ -118,5 +118,7 @@ class CustomUserDetailsSerializer(UserDetailsSerializer):
|
||||
|
||||
# Remove `pk` field from the response
|
||||
representation.pop('pk', None)
|
||||
# Remove the email field
|
||||
representation.pop('email', None)
|
||||
|
||||
return representation
|
||||
|
||||
Reference in New Issue
Block a user