Closed
Description
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
.
comments_hyperlinked = relations.HyperlinkedRelatedField(
related_link_view_name="entry-related",
related_link_url_kwarg="entry_pk",
self_link_view_name="entry-relationships",
many=True,
read_only=True,
source="comments",
)