Changes between Initial Version and Version 3 of Ticket #16609


Ignore:
Timestamp:
08/11/2011 05:14:22 PM (4 years ago)
Author:
aaugustin
Comment:

Fixed formatting.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16609

    • Property Cc cheater00@… added
    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Needs documentation unset
  • Ticket #16609 – Description

    initial v3  
    99In my case - this might be relevant or not - I am traversing a ForeignKey first and then an M2M field in that problematic search_fields entry, e.g:
    1010
    11 
     11{{{
    1212search_fields = ['=id', '=fkmodel__m2mmodel__name']
     13}}}
    1314
    1415This happens even though the string is not matched by fkmodel__m2mmodel__name, only by id.
     
    1617This might not be clear, this is what the model relations look like:
    1718
     19{{{
    1820(Model SearchedModel) --ForeignKey--> (Model FKModel) --ManyToMany--> (Model M2MModel)
     21}}}
    1922
    2023M2MModel contains the name field that I have specified in search_fields.
    21 
    2224
    2325This might or might not be related to #15559.
Back to Top