1👍
✅
You can either:
- provide full resource uri for the key’s value, i.e:
route: "/api/v1/route/59/"
- override the
hydrate_route
method of theMarkerResource
to return an object given dictionary passed. - create a custom field based off
fields.ForeignKey
that would implement custombuild_related_resource
behaviour.
Source:stackexchange.com