diff --git a/app/model_person.py b/app/model_person.py index a4a39c7..6c8046e 100644 --- a/app/model_person.py +++ b/app/model_person.py @@ -4,7 +4,8 @@ from app import ma from app.orm_decl import (Person, Edition, Contributor, Article, Awarded, ShortStory) -from .model import (PersonLinkBriefSchema, WorkBriefSchema, ShortBriefSchema, +from .model import (PersonBriefSchema, PersonLinkBriefSchema, WorkBriefSchema, + ShortBriefSchema, PublisherBriefSchema, EditionImageBriefSchema, ContributorRoleSchema, IssueBriefSchema, TagBriefSchema, AwardBriefSchema, AwardCategorySchema, @@ -95,6 +96,8 @@ class Meta: # format = fields.Nested(FormatBriefSchema) # editors = ma.List(fields.Nested(PersonPageBriefSchema)) contributions = ma.List(fields.Nested(PersonPageContributorSchema)) + owners = ma.List(fields.Nested(PersonBriefSchema(only=('id', 'name')))) + wishlisted = ma.List(fields.Nested(PersonBriefSchema(only=('id', 'name')))) class AwardedSchema(ma.SQLAlchemyAutoSchema): # type: ignore