feat: 到岗记录增加查询条件
This commit is contained in:
parent
ae40a5fe8c
commit
9b3a983c27
|
@ -254,7 +254,7 @@ class AttendanceViewSet(CustomModelViewSet):
|
|||
select_related_fields = ['user',
|
||||
'user__belong_dept', 'user__post', 'shift', 'team']
|
||||
filterset_fields = ['user',
|
||||
'user__belong_dept', 'user__post', 'state', 'work_date']
|
||||
'user__belong_dept', 'user__post', 'state', 'work_date', 'user__name', 'user__phone']
|
||||
ordering = ['-create_time']
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue