Skip to content

Commit cc74ce7

Browse files
committed
Removed check for "prefetch_for_includes"
1 parent 6a52554 commit cc74ce7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

rest_framework_json_api/views.py

-5
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,6 @@ class AutoPrefetchMixin(object):
111111
def get_queryset(self, *args, **kwargs):
112112
""" This mixin adds automatic prefetching for OneToOne and ManyToMany fields. """
113113
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-
119114
included_resources = get_included_resources(self.request)
120115

121116
for included in included_resources:

0 commit comments

Comments
 (0)