We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 196d8ba commit fc52dc4Copy full SHA for fc52dc4
rest_framework_json_api/views.py
@@ -148,12 +148,16 @@ def get_related_instance(self):
148
raise NotFound
149
150
151
-class ModelViewSet(AutoPrefetchMixin, PrefetchForIncludesHelperMixin, viewsets.ModelViewSet):
+class ModelViewSet(AutoPrefetchMixin,
152
+ PrefetchForIncludesHelperMixin,
153
+ RelatedMixin,
154
+ viewsets.ModelViewSet):
155
pass
156
157
158
class ReadOnlyModelViewSet(AutoPrefetchMixin,
159
PrefetchForIncludesHelperMixin,
160
161
viewsets.ReadOnlyModelViewSet):
162
163
0 commit comments