Ticket #1796: ManyToMany.patch
File ManyToMany.patch, 565 bytes (added by , 18 years ago) |
---|
-
query.py
713 713 if related_query: 714 714 matches = [f for f in field_list if f.field.related_query_name() == name] 715 715 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] 717 718 if len(matches) != 1: 718 719 return None 719 720 return matches[0]