Name |
Last commit
|
Last update |
---|---|---|
docs | ||
rest_framework | ||
.gitignore | ||
.travis.yml | ||
MANIFEST.in | ||
README.md | ||
mkdocs.py | ||
optionals.txt | ||
requirements.txt | ||
setup.py | ||
tox.ini |
It seems that field.related_query_name() does not return the related_name for reverse M2M relations when related_name is not explicitly set in the M2M field definition. So, change to use obj.get_accessor_name(), where obj is an instance of RelatedObject, as are returned by a model's _meta.get_all_related_many_to_many_objects(), or as in the tuples returned by _meta.get_all_m2m_objects_with_model().
Name |
Last commit
|
Last update |
---|---|---|
docs | Loading commit data... | |
rest_framework | Loading commit data... | |
.gitignore | Loading commit data... | |
.travis.yml | Loading commit data... | |
MANIFEST.in | Loading commit data... | |
README.md | Loading commit data... | |
mkdocs.py | Loading commit data... | |
optionals.txt | Loading commit data... | |
requirements.txt | Loading commit data... | |
setup.py | Loading commit data... | |
tox.ini | Loading commit data... |