feat: add organisations to network view

See #78
This commit is contained in:
James Graham
2021-03-01 14:43:16 +00:00
parent 550d7cede0
commit b73e2dcb2d
3 changed files with 31 additions and 1 deletions

View File

@@ -15,7 +15,16 @@ class PersonSerializer(serializers.ModelSerializer):
'name',
]
class OrganisationSerializer(serializers.ModelSerializer):
class Meta:
model = models.Organisation
fields = [
'pk',
'name',
]
class RelationshipSerializer(serializers.ModelSerializer):
source = PersonSerializer()
target = PersonSerializer()