From 7f36958683faba4426cc39748273e455350c8faa Mon Sep 17 00:00:00 2001 From: feng626 <1304903146@qq.com> Date: Mon, 14 Feb 2022 15:23:35 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=B7=A5=E5=8D=95=E6=B5=81=E5=8F=AA?= =?UTF-8?q?=E9=9C=80=E7=BB=84=E7=BB=87=E7=AE=A1=E7=90=86=E5=91=98=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tickets/api/ticket.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/tickets/api/ticket.py b/apps/tickets/api/ticket.py index 80bc034e3..bca98e1fd 100644 --- a/apps/tickets/api/ticket.py +++ b/apps/tickets/api/ticket.py @@ -33,7 +33,7 @@ class TicketViewSet(CommonApiMixin, viewsets.ModelViewSet): 'title', 'applicant_display', 'status', 'state', 'action_display', 'date_created', 'serial_num', ) - ordering = ('-date_created', ) + ordering = ('-date_created',) def create(self, request, *args, **kwargs): raise MethodNotAllowed(self.action) @@ -81,7 +81,7 @@ class TicketViewSet(CommonApiMixin, viewsets.ModelViewSet): class TicketFlowViewSet(JMSBulkModelViewSet): - permission_classes = (IsOrgAdmin, IsSuperUser) + permission_classes = (IsOrgAdmin,) serializer_class = serializers.TicketFlowSerializer filterset_fields = ['id', 'type']