mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-18 00:08:31 +00:00
fix: 工单序号添加排序
This commit is contained in:
@@ -29,7 +29,10 @@ class TicketViewSet(CommonApiMixin, viewsets.ModelViewSet):
|
|||||||
search_fields = [
|
search_fields = [
|
||||||
'title', 'action', 'type', 'status', 'applicant_display'
|
'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', )
|
ordering = ('-date_created', )
|
||||||
|
|
||||||
def create(self, request, *args, **kwargs):
|
def create(self, request, *args, **kwargs):
|
||||||
|
Reference in New Issue
Block a user