Ticket #2348: query.py.diff
File query.py.diff, 759 bytes (added by , 18 years ago) |
---|
-
query.py
836 836 new_column = new_opts.pk.column 837 837 join_column = field.column 838 838 839 raise FieldFound 839 # If there are still items on path but this is not a related field, we're stuck. 840 # Add first element of path to current field name so the TypeError raised 841 # below properly identifies the cause of the problem. 842 if path and not field.rel: 843 name += LOOKUP_SEPARATOR + path[0] 844 else: 845 raise FieldFound 840 846 841 847 except FieldFound: # Match found, loop has been shortcut. 842 848 pass