From 4e5105ce5dc79a35df3e58a7b0ef3b496ef66e16 Mon Sep 17 00:00:00 2001 From: Marko Poutiainen Date: Mon, 9 Dec 2024 23:12:32 +0200 Subject: [PATCH] Added wishlist and owned to Person page's editions. --- app/model_person.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/model_person.py b/app/model_person.py index a4a39c73..6c8046e3 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