Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
Improve internal class name
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmullen committed Feb 4, 2021
1 parent e2a73e3 commit 47d588b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dkc/core/rest/folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Meta(FolderSerializer.Meta):
read_only_fields = FolderSerializer.Meta.read_only_fields + ['parent']


class FolderQuotaSerializer(serializers.ModelSerializer):
class QuotaSerializer(serializers.ModelSerializer):
class Meta:
model = Quota
fields = ['allowed', 'used']
Expand Down Expand Up @@ -205,12 +205,12 @@ def path(self, request, pk=None):
serializer = self.get_serializer(ancestors, many=True)
return Response(serializer.data)

@swagger_auto_schema(responses={200: FolderQuotaSerializer})
@swagger_auto_schema(responses={200: QuotaSerializer})
@action(detail=True, queryset=Folder.objects.select_related('tree__quota'))
def quota(self, request, pk=None):
"""Retrieve size quota information for a folder."""
folder = self.get_object()
serializer = FolderQuotaSerializer(folder.tree.quota)
serializer = QuotaSerializer(folder.tree.quota)
return Response(serializer.data)

@swagger_auto_schema(
Expand Down

0 comments on commit 47d588b

Please sign in to comment.