Skip to content

Commit

Permalink
feature: order tags by name
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanJaeger committed Dec 3, 2024
1 parent a7ebf39 commit 5edfee9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chats/apps/api/v1/internal/sectors/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def perform_destroy(self, instance):


class SectorTagsViewset(viewsets.ModelViewSet):
queryset = SectorTag.objects.all()
queryset = SectorTag.objects.all().order_by("name")
serializer_class = SectorTagSerializer
permission_classes = [IsAuthenticated, ModuleHasPermission]
filter_backends = [DjangoFilterBackend]
Expand Down
2 changes: 1 addition & 1 deletion chats/apps/api/v1/sectors/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def authorization(self, request, *args, **kwargs):


class SectorTagsViewset(viewsets.ModelViewSet):
queryset = SectorTag.objects.all()
queryset = SectorTag.objects.all().order_by("name")
serializer_class = sector_serializers.SectorTagSerializer
filter_backends = [DjangoFilterBackend]
filterset_class = SectorTagFilter
Expand Down

0 comments on commit 5edfee9

Please sign in to comment.