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:
parent
c1807826d0
commit
7d71c84fd2
8 changed files with 55 additions and 411 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue