1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-22 06:19:38 +02:00

feat: Remove email field from user details response and enhance frontend user display

This commit is contained in:
Sean Morley 2025-02-01 15:10:25 -05:00
parent c1807826d0
commit 7d71c84fd2
8 changed files with 55 additions and 411 deletions

View file

@ -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