Using the property Depth in Django Rest Framework serializers

Viewed 104

When I use the Depth property in a serializer that brings the user model reference, it brings the user's password field, would there be any way to remove the password from the request response?

my response:

enter image description here

1 Answers

Define Serializer for user and exclude password field and use this serializer in views and then access this new view to show depth.

Related