人员列表增加手机号检索

This commit is contained in:
caoqianming 2022-11-07 10:42:41 +08:00
parent 22e9bb38c3
commit c4dea515a2
1 changed files with 1 additions and 1 deletions

View File

@ -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):