Skip to content

Commit

Permalink
Merge pull request #1222 from dandi/fix-asset-list-performance
Browse files Browse the repository at this point in the history
  • Loading branch information
danlamanna committed Aug 22, 2022
2 parents 5fec7b6 + 82aa56b commit 325090e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandiapi/api/views/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class Meta:


class AssetViewSet(DetailSerializerMixin, GenericViewSet):
queryset = Asset.objects.all().order_by('created')
queryset = Asset.objects.all().select_related('zarr').order_by('created')

serializer_class = AssetSerializer
serializer_detail_class = AssetDetailSerializer
Expand Down

0 comments on commit 325090e

Please sign in to comment.