feat: 值班记录排序

This commit is contained in:
caoqianming 2023-06-28 09:13:14 +08:00
parent 49fa109233
commit 6bbbf16049
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ class SfLogViewSet(UpdateModelMixin, ListModelMixin, DestroyModelMixin, CustomGe
select_related_fields = ['mgroup', 'shift', 'team', 'leader']
filterset_fields = ['mgroup', 'shift', 'team', 'leader', 'team__belong_dept']
search_fields = ['note']
ordering = ['-start_time']
@transaction.atomic
def perform_create(self, serializer):