hrm detail get_location bug
This commit is contained in:
parent
5b7b180ee1
commit
97bdde5888
|
@ -164,7 +164,7 @@ class EmployeeDetailSerializer(EmployeeSerializer):
|
||||||
key_str = 'ep_{}'.format(obj.id)
|
key_str = 'ep_{}'.format(obj.id)
|
||||||
ep_loc_dict = cache.get(key_str, None)
|
ep_loc_dict = cache.get(key_str, None)
|
||||||
if ep_loc_dict:
|
if ep_loc_dict:
|
||||||
area_fix_id = ep_loc_dict.get('arex_fix_id', None)
|
area_fix_id = ep_loc_dict.get('area_fix_id', None)
|
||||||
ep_loc_dict['area_fix_name'] = Area.objects.get(id=area_fix_id).name if area_fix_id else None
|
ep_loc_dict['area_fix_name'] = Area.objects.get(id=area_fix_id).name if area_fix_id else None
|
||||||
return ep_loc_dict
|
return ep_loc_dict
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue