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:
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:
Define Serializer for user and exclude password field and use this serializer in views and then access this new view to show depth.