import - organizations in rancher serializer / temporary tags model
This commit is contained in:
@@ -62,6 +62,11 @@ class RancherSerializer(serializers.ModelSerializer):
|
||||
'name': instance.city.name
|
||||
}
|
||||
|
||||
representation['organizations'] = [
|
||||
{'id': item.organization.id, 'name': item.organization.name}
|
||||
for item in instance.organization_links.all()
|
||||
]
|
||||
|
||||
return representation
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user