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.
Name |
Last commit
|
Last update |
---|---|---|
.tx | Loading commit data... | |
docs | Loading commit data... | |
docs_theme | Loading commit data... | |
requirements | Loading commit data... | |
rest_framework | Loading commit data... | |
tests | Loading commit data... | |
.gitignore | Loading commit data... | |
.isort.cfg | Loading commit data... | |
.travis.yml | Loading commit data... | |
CONTRIBUTING.md | Loading commit data... | |
ISSUE_TEMPLATE.md | Loading commit data... | |
LICENSE.md | Loading commit data... | |
MANIFEST.in | Loading commit data... | |
PULL_REQUEST_TEMPLATE.md | Loading commit data... | |
README.md | Loading commit data... | |
mkdocs.yml | Loading commit data... | |
requirements.txt | Loading commit data... | |
runtests.py | Loading commit data... | |
schema-support | Loading commit data... | |
setup.cfg | Loading commit data... | |
setup.py | Loading commit data... | |
tox.ini | Loading commit data... |