Changes between Initial Version and Version 1 of Ticket #31940


Ignore:
Timestamp:
Aug 24, 2020, 1:37:11 PM (4 years ago)
Author:
Tommy Li
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31940 – Description

    initial v1  
    2121
    2222After 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
     24A workaround is to run
     25{{{#!python
     26MyModel.objects.filter(b_field = 1).filter(a_field = 2)
     27}}}
     28But this is pretty inconvenient if you just want to run a .get, you would have to build out a verbose .filter().filter().first() query
Back to Top