Skip to content

Commit

Permalink
refactor(models): make PersonDetail inherit from Person
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Jan 13, 2025
1 parent c13ae5b commit 3fde858
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pfp_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,5 @@ class Person(Entity):
graph: str = None


class PersonDetail(Entity):
person: str = None
label: str = Field(..., example="Arthur Schnitzler")
class PersonDetail(Person):
events: Optional[List[Event]] = None

0 comments on commit 3fde858

Please sign in to comment.