fix: 紧急bug

This commit is contained in:
caoqianming 2023-05-09 09:52:54 +08:00
parent 25e56b4bd0
commit eeca896a78
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class EmployeeSimpleSerializer(CustomModelSerializer):
class Meta:
model = Employee
fields = ['id', 'type', 'name', 'belong_dept', 'belong_dept_name', 'post', 'post_name', 'photo', 'third_info', 'number', 'id_number']
fields = ['id', 'type', 'name', 'belong_dept', 'belong_dept_name', 'post', 'post_name', 'photo', 'third_info', 'number', 'id_number', 'location']
def get_location(self, obj):
key_str = 'ep_{}'.format(obj.id)