1
0
Fork 0
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:
Sean Morley 2025-03-17 14:38:10 -04:00
parent 3b6d437f29
commit 585f050a30
2 changed files with 3 additions and 2 deletions

View file

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