better model inheritance
This commit is contained in:
1 parent
52c6fe34b2
commit
ad0ea09be9
1 file changed
+1
-3
@@ -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 [
|
||||
|
||||
Reference in new issue
Block a user