-
Notifications
You must be signed in to change notification settings - Fork 441
Open
Labels
triageNo assigned versionNo assigned version
Description
This is different but complementary to issue #481 : when a serializers.PrimaryKeyRelatedField's queryset points to a one2one related field (such as when using django polymorphic) one should resolve recursively the type of the field, and not as a string.
Rationale: django polymorphic models inheritance by having a one2one relation between the child model's pk and its parent's pk.
Such inheritance chains can be arbitrarily long, so the only solution I could find was writing a recursive implementation (but maybe the base type can be extracted without recursion?) which I will send as a PR hoping it is useful.
Edit: PR #560
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
triageNo assigned versionNo assigned version