mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
better model inheritance
This commit is contained in:
parent
52c6fe34b2
commit
ad0ea09be9
@ -249,14 +249,12 @@ class GroupInDB(UpdateGroup):
|
||||
]
|
||||
|
||||
|
||||
class GroupSummary(MealieModel):
|
||||
class GroupSummary(GroupBase):
|
||||
id: UUID4
|
||||
name: str
|
||||
slug: str
|
||||
preferences: ReadGroupPreferences | None = None
|
||||
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
@classmethod
|
||||
def loader_options(cls) -> list[LoaderOption]:
|
||||
return [
|
||||
|
Loading…
x
Reference in New Issue
Block a user