Links can now be serialized by subclasses
Review Request #7333 — Created May 25, 2015 and submitted — Latest diff uploaded
The machinery for serializing links has been modified so that its
behvaiour can be changed by subclasses. Theget_link_serializer
method takes a field name and returns the appropriate serializing
function for the link. The default function isserialize_link
but
subclasses may provide aserialize_fieldname_link
method that will be
used instead.
Tested the
serialize_fieldname_link
behaviour with a resource. It
worked as intended.Ran unit tests.