Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine return type for
ManyToOneRel.get_accessor_name()
(#2052)
Only for the special case of a symmetrical m2m relation on self, `ForeignObjectRel.get_accessor_name()` will return `None`. However, `ManyToOneRel` and its subclasses will never be symmetrical, so for those classes `get_accessor_name()` does not return `None`.
- Loading branch information