diff --git a/apps/tickets/api/ticket.py b/apps/tickets/api/ticket.py index e77ca86e6..80bc034e3 100644 --- a/apps/tickets/api/ticket.py +++ b/apps/tickets/api/ticket.py @@ -29,7 +29,10 @@ class TicketViewSet(CommonApiMixin, viewsets.ModelViewSet): search_fields = [ 'title', 'action', 'type', 'status', 'applicant_display' ] - ordering_fields = ('title', 'applicant_display', 'status', 'state', 'action_display', 'date_created') + ordering_fields = ( + 'title', 'applicant_display', 'status', 'state', 'action_display', + 'date_created', 'serial_num', + ) ordering = ('-date_created', ) def create(self, request, *args, **kwargs):