Allow resources to specify the title of serialized links
Review Request #8139 — Created May 2, 2016 and submitted
Instead of always returning the object's unicode representation as the
title, resource classes can now specify aget_object_titlemethod to
specialize this behaviour.
Tested this with an upcoming Splat patch.
- Change Summary:
-
Addressed David's issues
- Commit:
-
5949a8580aa53f79b8cfc87b21a5924a0d3ff724d490e3c1c1d5b23ac2f12b4e54e5460cde4a3f0b
- Diff:
-
Revision 2 (+25 -1)
Tool: Pyflakes Processed Files: djblets/webapi/resources/base.py Tool: PEP8 Style Checker Processed Files: djblets/webapi/resources/base.py