Commit 8b1ed17e authored by John Red Medrano's avatar John Red Medrano

Merge pull request #142 in RMS/api-main-service from red-develop to RMSv2

* commit 'bc847837':
  added company and department name
parents 437f8113 bc847837
......@@ -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