Allow sorting tags by color

This commit is contained in:
Michael Shamoon 2023-01-17 06:32:46 -08:00 committed by Trenton H
parent 0b53a8981c
commit 1bf6d9165f

View File

@ -176,7 +176,7 @@ class TagViewSet(ModelViewSet):
permission_classes = (IsAuthenticated,)
filter_backends = (DjangoFilterBackend, OrderingFilter)
filterset_class = TagFilterSet
ordering_fields = ("name", "matching_algorithm", "match", "document_count")
ordering_fields = ("color", "name", "matching_algorithm", "match", "document_count")
class DocumentTypeViewSet(ModelViewSet):