Skip to content

Commit

Permalink
Added wishlist and owned to Person page's editions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Makistos committed Dec 9, 2024
1 parent 8affa10 commit 4e5105c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/model_person.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4e5105c

Please sign in to comment.