人员列表增加手机号检索
This commit is contained in:
parent
22e9bb38c3
commit
c4dea515a2
|
@ -46,7 +46,7 @@ class EmployeeViewSet(CustomModelViewSet):
|
|||
create_serializer_class = EmployeeCreateUpdateSerializer
|
||||
update_serializer_class = EmployeeCreateUpdateSerializer
|
||||
partial_update_serializer_class = EmployeeCreateUpdateSerializer
|
||||
search_fields = ['name', 'number', 'user__username', 'id_number', 'id']
|
||||
search_fields = ['name', 'number', 'user__username', 'id_number', 'id', 'phone']
|
||||
ordering = ['-pk']
|
||||
|
||||
# def filter_queryset(self, queryset):
|
||||
|
|
Loading…
Reference in New Issue