Commit bc847837 authored by John Red Medrano's avatar John Red Medrano

added company and department name

parent 763b20d0
......@@ -6,8 +6,8 @@ class AllowedCompanySerializer(serializers.ModelSerializer):
def to_representation(self, instance):
ret = super().to_representation(instance)
ret['department_name'] = model_to_dict(instance.group_pivots)
ret['company_name'] = model_to_dict(instance.company_pivot)
ret['department'] = model_to_dict(instance.group_pivots)
ret['company'] = model_to_dict(instance.company_pivot)
return ret
class Meta:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment