We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a52554 commit cc74ce7Copy full SHA for cc74ce7
rest_framework_json_api/views.py
@@ -111,11 +111,6 @@ class AutoPrefetchMixin(object):
111
def get_queryset(self, *args, **kwargs):
112
""" This mixin adds automatic prefetching for OneToOne and ManyToMany fields. """
113
qs = super(AutoPrefetchMixin, self).get_queryset(*args, **kwargs)
114
-
115
- # Prefetch includes handled by another mixin, let's do not mix them
116
- if hasattr(self, 'prefetch_for_includes'):
117
- return qs
118
119
included_resources = get_included_resources(self.request)
120
121
for included in included_resources:
0 commit comments