Re: How to use the encoder for `values()` so to behave as if it's still using DRF encoder?

2019-11-03 Thread Jason
Nice work! I think this was an explicit decision by Tom back in 2014. Using https://github.com/encode/django-rest-framework/commit/040bfcc09c851bb3dadd60558c78a1f7937e9fbd for reference, you can see DecimalField

How to use the encoder for `values()` so to behave as if it's still using DRF encoder?

2019-11-03 Thread TJ Simmons
I am using DRF and i have a situation where I have too many database calls. So I used `values()` for one of the serializers to reduce the number of calls. I tweeted about it as well https://twitter.com/KimStacks/status/1190942972273025024 I am of course not sure if this is the best way to