Changes between Version 1 and Version 2 of Ticket #26983, comment 3


Ignore:
Timestamp:
Aug 2, 2016, 3:50:35 AM (8 years ago)
Author:
Baptiste Mispelon

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26983, comment 3

    v1 v2  
    66
    77Following the advice of kezabelle on IRC, I placed a PDB trace right before https://github.com/django/django/blob/master/django/db/models/lookups.py#L436 and found out that at this point, the value of `self.rhs` is `'False'`, that is the string `'False'` rather than a boolean object, which triggers the wrong branch of the `if` statement.
     8
     9** --Edit 2-- **
     10Digging a bit deeper, it turns out that this line is where `False` gets converted to `'False'`: https://github.com/django/django/blob/master/django/db/models/fields/related_lookups.py#L100
Back to Top