Changes between Initial Version and Version 1 of Ticket #28175


Ignore:
Timestamp:
May 5, 2017, 5:57:59 AM (8 years ago)
Author:
Daniel Keller
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28175 – Description

    initial v1  
    3030
    3131It's not clear to me from the docs whether the 1.10 behavior was intended, though.
     32
     33It appears that adding the lines
     34{{{
     35                elif getattr(self.lhs.field.target_field, 'primary_key', False):
     36                    target_field = 'pk'
     37}}}
     38to django/db/models/fields/related_lookups.py at line 92 fixes this problem.
Back to Top