Ticket #1796: ManyToMany.patch

File ManyToMany.patch, 565 bytes (added by curtis.thompson@…, 18 years ago)

Patch files

  • query.py

     
    713713    if related_query:
    714714        matches = [f for f in field_list if f.field.related_query_name() == name]
    715715    else:
    716         matches = [f for f in field_list if f.name == name]
     716        matches = [f for f in field_list if f.name == name or
     717                hasattr(f, "related_query_name") and f.related_query_name() == name]
    717718    if len(matches) != 1:
    718719        return None
    719720    return matches[0]
Back to Top