You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I am sending requests I am getting this error:
django.core.exceptions.ImproperlyConfigured: Could not resolve URL for hyperlinked relationship using view name "user-detail". You may have failed to include the related model in your API, or incorrectly configured the `lookup_field` attribute on this field.
I tried to set rest_user_details view name in serializer, but it didn't help.
I am trying to add a hyperlink to
UserDetailsSerializer
.I wrote custom serializer like this:
Registered it in
settings.py
:When I am sending requests I am getting this error:
I tried to set
rest_user_details
view name in serializer, but it didn't help.Is there any way to make it work?
The text was updated successfully, but these errors were encountered: