mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-04 03:47:06 +00:00
refactor: Move export into separate app
This commit is contained in:
14
export/views/people.py
Normal file
14
export/views/people.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from . import base
|
||||
from .. import serializers
|
||||
|
||||
from people import models
|
||||
|
||||
|
||||
class PersonExportView(base.CsvExportView):
|
||||
model = models.person.Person
|
||||
serializer_class = serializers.people.PersonExportSerializer
|
||||
|
||||
|
||||
class RelationshipExportView(base.CsvExportView):
|
||||
model = models.relationship.Relationship
|
||||
serializer_class = serializers.people.RelationshipSerializer
|
||||
Reference in New Issue
Block a user