Skip to content

Get raw data with values and values_list

Compare
Choose a tag to compare
@collerek collerek released this 08 Jun 15:29
· 800 commits to master since this release
5316306

0.10.11

✨ Features

  • Add values and values_list to QuerySet and QuerysetProxy that allows to return raw data from query #223.
    • Allow returning list of tuples or list of dictionaries from a query
    • Skips parsing the data to ormar model so skips also the validation
    • Allow excluding models in between in chain of relations, so you can extract only needed columns
    • values_list allows you to flatten the result if you extract only one column.

🐛 Fixes

  • Fix creation of auto through model for m2m relation with ForwardRef #226