cities = serializers.serialize("json", country.city_set.all(), fields=('name',
'id'))
In this it should JSON object with only name and id field but it returns
[{"fields": {"name": "Chennai"}, "model": "job.city", "pk": 1}] where as it
should return [{"name": "Chennai", "id": 1}].
How to fix this error ?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/9ceeb485-7fea-4049-8c8c-fa6f453b5324%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.