The structure of the python code inside piston actually prevents me from subclassing and overriding the methods I'd need to override to fix this properly (I would need to override in _related() which is defined *inside* construct() (see https://bitbucket.org/jespern/django-piston/src/882d38485abc/piston/emitters.py#cl-136).
I'm looking into alternative ways to fix this.
The structure of the python code inside piston actually prevents me from subclassing and overriding the methods I'd need to override to fix this properly (I would need to override in _related() which is defined *inside* construct() (see https:/ /bitbucket. org/jespern/ django- piston/ src/882d38485ab c/piston/ emitters. py#cl-136).
I'm looking into alternative ways to fix this.