diff --git a/pinry/core/api.py b/pinry/core/api.py index ea7d30d..6cfa069 100644 --- a/pinry/core/api.py +++ b/pinry/core/api.py @@ -139,7 +139,7 @@ class PinResource(ModelResource): filtering = { 'submitter': ALL_WITH_RELATIONS } - queryset = Pin.objects.all().select_related('submitter'). \ + queryset = Pin.objects.all().select_related('submitter', 'image'). \ prefetch_related('image__thumbnail_set', 'tags') resource_name = 'pin' include_resource_uri = False