[Chennaipy] Django doubt

Maruti Nandan nandanself at gmail.com
Tue Jul 21 21:53:10 CEST 2015


I am a newbie to django.I am designing a rest ful  api. In my response I am
getting something like this

{ "id":"1" , " type ": "thin,tall,round", " "name": " foo" }

But I want something like this

{ "id":"1" , " type ": ["thin","tall","round"] , " "name": " foo" }

What model field type should I use to achieve this or any other approach.
This may be very small query. But it will help me a lot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chennaipy/attachments/20150722/a0a76902/attachment.html>


More information about the Chennaipy mailing list