diff --git a/apps/hrm/views.py b/apps/hrm/views.py index edb5bfd9..6e86f89f 100755 --- a/apps/hrm/views.py +++ b/apps/hrm/views.py @@ -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):