Done.
long_type = serializers.CharField(source='get_FOO_display')
On 26 October 2014 14:38, Lachlan Musicman wrote:
> When using GET to retrieve data, how do I populate the JSON with
> get_FOO_display rather than FOO?
>
> cheers
> L.
>
> --
> You have to be really clever to come up with a genui
When using GET to retrieve data, how do I populate the JSON with
get_FOO_display rather than FOO?
cheers
L.
--
You have to be really clever to come up with a genuinely dangerous
thought. I am disheartened that people can be clever enough to do that
and not clever enough to do the obvious thing a
2 matches
Mail list logo