You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If SerializerMethodResourceRelatedField is called with many=True and creates child field it misses call to bind() which would complete setting the relation between parent field and child field.
In effect it breaks the pattern that on every DRF field you can always go up the tree towards the root using parent attribute.
I am aware that there are some issues related to SerializerMethodResourceRelatedField already reported in #639, but since this bug is completely independent thing, I report it as separate issue.
The text was updated successfully, but these errors were encountered:
If
SerializerMethodResourceRelatedField
is called withmany=True
and creates child field it misses call tobind()
which would complete setting the relation between parent field and child field.In effect it breaks the pattern that on every DRF field you can always go up the tree towards the root using
parent
attribute.That part of ManyRelatedField.init() is missing:
I am aware that there are some issues related to
SerializerMethodResourceRelatedField
already reported in #639, but since this bug is completely independent thing, I report it as separate issue.The text was updated successfully, but these errors were encountered: