4 ms·
You can also commit to always use .values() in django. That makes it error out when you access non-prefetched entities
by 411111111111111 6y ago
You can also commit to always use .values() in django. That makes it error out when you access non-prefetched entities
- Demiurge 6y agoalso, values is awesome for returning your models as dicts when that's all you need most of the time, avoiding all the overhead of objects