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
Regarding the NestedViewSetMixin:
The parent_lookup_kwargs updates the get_queryset method that is only called in the view but is defined in the Serializer.
If two different views (different kwargs) serialize the same object, we need to have two Serializers with different parent_lookup_kwargs.
If it makes sense for HyperLinked, it does not for NestedViewSetMixin.
Does it make sense to open a Pull Request and move the parent_lookup_kwargs to the ViewSet (keeping retro-compatibility with a warning) ?
The text was updated successfully, but these errors were encountered:
Regarding the NestedViewSetMixin:
The
parent_lookup_kwargs
updates theget_queryset
method that is only called in the view but is defined in theSerializer
.If two different views (different kwargs) serialize the same object, we need to have two Serializers with different
parent_lookup_kwargs
.If it makes sense for HyperLinked, it does not for NestedViewSetMixin.
Does it make sense to open a Pull Request and move the
parent_lookup_kwargs
to the ViewSet (keeping retro-compatibility with a warning) ?The text was updated successfully, but these errors were encountered: