diff --git a/flask_restless/views/base.py b/flask_restless/views/base.py index 0b300377..5acdd6c6 100644 --- a/flask_restless/views/base.py +++ b/flask_restless/views/base.py @@ -1413,7 +1413,7 @@ def get_all_inclusions(self, instance_or_instances): # one instance. Otherwise, collect the resources to include for # each instance in `instances`. if isinstance(instance_or_instances, Query): - instances = instance_or_instances + instances = instance_or_instances.all() to_include = set(chain(map(self.resources_to_include, instances))) else: instance = instance_or_instances