mirror of https://github.com/jumpserver/jumpserver
fix: 工单序号添加排序
parent
620834c817
commit
43c4c78378
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue