From c2919b9673f86ccf1c221180c058e451cc34ba2a Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 27 Jan 2022 14:41:28 +0800 Subject: [PATCH] =?UTF-8?q?employee=20list=20=E5=A2=9E=E5=8A=A0=20is=5Fatw?= =?UTF-8?q?ork?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/hrm/serializers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hb_server/apps/hrm/serializers.py b/hb_server/apps/hrm/serializers.py index 9371ff4..8d9d841 100644 --- a/hb_server/apps/hrm/serializers.py +++ b/hb_server/apps/hrm/serializers.py @@ -10,6 +10,7 @@ from django.db.models.query import Prefetch class EmployeeSerializer(DynamicFieldsSerializerMixin, ModelSerializer): name = serializers.CharField(source='user.name', read_only=True) dept_ = OrganizationSimpleSerializer(source='user.dept', read_only=True) + is_atwork = serializers.BooleanField(source='user.is_atwork', read_only=True) class Meta: model = Employee exclude = ['face_data']