mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-24 07:19:36 +02:00
feat: Add disable_password field to CustomUserDetailsSerializer and update PublicUserListView
This commit is contained in:
parent
3b6d437f29
commit
585f050a30
2 changed files with 3 additions and 2 deletions
|
@ -72,6 +72,7 @@ class PublicUserListView(APIView):
|
|||
# for every user, remove the field has_password
|
||||
for user in serializer.data:
|
||||
user.pop('has_password', None)
|
||||
user.pop('disable_password', None)
|
||||
return Response(serializer.data, status=status.HTTP_200_OK)
|
||||
|
||||
class PublicUserDetailView(APIView):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue