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
There is no way currently to pass a custom lookup name of related_views to hyperlinked fields.
The below field should link to /entries/123/comments instead of /entries/123/comments_hyperlinked.
This is in the example app like this but I wonder whether it makes any sense at all to define a related field to the same relationship twice on the same serializer: one hyperlinked and one as resource.
I haven't tested this but if the hyperlink is defined like the below it should actually work right?
I thought about this issue again and actually the url the hyperlinked related field produces is correct, the issue is though that the test EntrySerializer does not either add a included_serializers or related_serializers for the field comments_hyperlinked. So this is a issue in the configuration of the example app. As of #468 we are currently cleaning up all the tests and then the example app so this will be addressed there too. Therefore closing this issue.
If I missed anything and this is actually a DJA and not a test issue please feel free to comment.
Refer to: #904
There is no way currently to pass a custom lookup name of
related_view
s to hyperlinked fields.The below field should link to
/entries/123/comments
instead of/entries/123/comments_hyperlinked
.The text was updated successfully, but these errors were encountered: