google-code-export / wadofstuff

Automatically exported from code.google.com/p/wadofstuff
1 stars 0 forks source link

The wadofstuff-django-serializers casts all "extras" to strings using django.utils.encoding.smart_unicode #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add a custom method to your Model that returns a list
2. Add the above custom method to the "extras" of the serialize function using 
the 'json' serializer type

What is the expected output? What do you see instead?

Expected is json Array type and not a stringified list "[1,2,3]"

What version of the product are you using? On what operating system?

wadofstuff-django-serializers 1.0.0

Please provide any additional information below.

I have attached a patched version of wadofstuff.django.serializers.python.
The patch may need review.

Original issue reported on code.google.com by alen.ri...@gmail.com on 14 Sep 2010 at 5:48

Attachments: