test_filters.py
34 KB
-
Restore meta information for each search field. (#4298) · 3ca0b15b
The meta information stored in opts needs to be restored for each search field. Otherwise it references the wrong model when an attribute of a related model comes before an attribute of the original model in search fields. This doesn't apply to m2m relations since must_call_distinct returns True in that case.
Andi Albrecht committed