Changes between Initial Version and Version 1 of Ticket #31498
- Timestamp:
- Apr 21, 2020, 8:55:55 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31498 – Description
initial v1 21 21 }}} 22 22 23 When I inspect Example._meta.get_field('example_gfk').get_internal_type(), it reports back a ManyToManyField. This can't be right, though; as a reverse relationship, it should be a ManyToOneRel; an ExampleGFK can't be related to more than one Exampleobject.23 When I inspect `Example._meta.get_field('example_gfk').get_internal_type()`, it reports it is a `ManyToManyField`. This can't be right, though; as a reverse relationship, it should be a `ManyToOneRel`; a single `ExampleGFK` can't be related to more than one `Example` object. 24 24 25 25 Perhaps there's a solid reason for this that eludes me, like it tricks some part of the admin or other part of the ORM to behave correctly. If so, at the very least a note in the documentation or a docstring in the code could clarify that reason.