Commits

Leonardo Santos committed 39ede9e

Increased to version 0.2.9
Fixing tastypie jsonp post serialization error

Comments (0)

Files changed (2)

inoa/tastypie/resources.py

             else:
                 cache.set(cache_key, serialized_response)
         if 'text/javascript' in desired_format:
-            serialized_response.content = serialized_response.content.replace(u'\u2028', u'\\u2028').replace(u'\u2029', u'\\u2029')
+            serialized_response.content = unicode(serialized_response.content).replace(u'\u2028', u'\\u2028').replace(u'\u2029', u'\\u2029')
             serialized_response.content = u'%s(%s)' % (callback, serialized_response.content)
 
         return serialized_response
 
 setup(
     name='django-inoa',
-    version='0.2.8',
+    version='0.2.9',
     author='Inoa',
     author_email='django@inoa.com.br',
     packages=packages,