vbabiy / djangorestframework-camel-case

Camel case JSON support for Django REST framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rendering a dict response only returns a list of keys since #34

bennettrogers opened this issue · comments

First of all, thanks for building this package. It's very convenient!

I recently updated to the latest release and noticed that rendering dict responses from DRF is broken. It looks like the iterator support added in #34 clobbers the original dict handling. The dict response is camelized correctly, but then the is_iterable(data) conditional passes and immediately the dict is converted into a list of just the keys and that is what is returned.

I'm wondering if the intent was to make that an elif conditional instead?

Nevermind - I think I broke my local copy of the package trying to debug a separate issue. Please disregard.