fix: Remove Person.name from CSV export

See #35
This commit is contained in:
James Graham
2020-06-25 11:11:14 +01:00
parent b84076ec3b
commit aafb6c0a21

View File

@@ -12,7 +12,8 @@ class SimplePersonSerializer(serializers.ModelSerializer):
model = models.Person model = models.Person
fields = [ fields = [
'id', 'id',
'name', # Name is excluded from exports
# See https://github.com/Southampton-RSG/breccia-mapper/issues/35
] ]
@@ -21,7 +22,8 @@ class PersonSerializer(base.FlattenedModelSerializer):
model = models.Person model = models.Person
fields = [ fields = [
'id', 'id',
'name', # Name is excluded from exports
# See https://github.com/Southampton-RSG/breccia-mapper/issues/35
'gender', 'gender',
'age_group', 'age_group',
'nationality', 'nationality',