Patch database documentation to explain how to return fetchall() as a dict rather than list.
|Reported by:||foxwhisper||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||no|
Full discussion about this topic can be found in:
So far we have +2 votes and -1 vote.
The thing is, this is a DB API snippet, not a Django snippet specifically. If Django were a DB API toolbox, then it might make sense to include it in some form or other. But it's not, so in the interest of keeping things relatively tidy I'm a -0 on this.
It is often said here that Django ORM is designed to do 80% of the stuff, the rest can be done using raw SQL. So, giving pointers to users how to perform the raw SQL as painlessly as possible is something Django documentation should do.
Could we get some more feedback on this??
Change History (7)
comment:1 Changed 4 years ago by brillgen
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
Changed 4 years ago by foxwhisper
comment:5 Changed 3 years ago by ubernostrum
- Resolution set to fixed
- Status changed from new to closed