Changes between Initial Version and Version 1 of Ticket #31498


Ignore:
Timestamp:
Apr 21, 2020, 8:55:55 PM (5 years ago)
Author:
George Dorn
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31498 – Description

    initial v1  
    2121}}}
    2222
    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 Example object.
     23When 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.
    2424
    2525Perhaps 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.
Back to Top