Re: REST Framework, choices fields

2014-10-25 Thread Lachlan Musicman
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

REST Framework, choices fields

2014-10-25 Thread Lachlan Musicman
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