Changes between Initial Version and Version 1 of Ticket #31940
- Timestamp:
- Aug 24, 2020, 1:37:11 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31940 – Description
initial v1 21 21 22 22 After some experimentation, it looks like the WHERE clauses are ordered alphabetically by column name. Is that explicitly intended, or is it just a side effect of some implementation detail? 23 24 A workaround is to run 25 {{{#!python 26 MyModel.objects.filter(b_field = 1).filter(a_field = 2) 27 }}} 28 But this is pretty inconvenient if you just want to run a .get, you would have to build out a verbose .filter().filter().first() query