mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-05 05:25:26 +02:00
better model inheritance
This commit is contained in:
parent
52c6fe34b2
commit
ad0ea09be9
1 changed files with 1 additions and 3 deletions
|
@ -249,14 +249,12 @@ class GroupInDB(UpdateGroup):
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
class GroupSummary(MealieModel):
|
class GroupSummary(GroupBase):
|
||||||
id: UUID4
|
id: UUID4
|
||||||
name: str
|
name: str
|
||||||
slug: str
|
slug: str
|
||||||
preferences: ReadGroupPreferences | None = None
|
preferences: ReadGroupPreferences | None = None
|
||||||
|
|
||||||
model_config = ConfigDict(from_attributes=True)
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def loader_options(cls) -> list[LoaderOption]:
|
def loader_options(cls) -> list[LoaderOption]:
|
||||||
return [
|
return [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue