djangorestframework-camel-case icon indicating copy to clipboard operation
djangorestframework-camel-case copied to clipboard

Add capability to camelize QuerySets

Open MattBlack85 opened this issue 10 years ago • 1 comments

This PR is intended to add support when one is using .values() method on querysets. Actual behaviour is returning the QuerySet since it's not a dict, a list neither a tuple. Now a ValuesQuerySet (deprecated from 1.9, for this reason I check straight for QuerySet instance) can be camelized correctly.

Since there is no django setup while running tests I'm not sure how to test it and add this behaviour, but if you have any suggestion @vbabiy I'd be happy to do it

MattBlack85 avatar Jul 23 '15 10:07 MattBlack85

@MattBlack85 this is great idea, we need to set up an integration suite to test this. Also allowing us to test settings.

vbabiy avatar Jul 07 '17 04:07 vbabiy