mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-03 09:04:06 -05:00
fix: Add missing group_id to RecipeTag and TagBase schemas (#5342)
Co-authored-by: Robert Dana <bob@yall.org> Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
@@ -38,6 +38,7 @@ app_dirs = get_app_dirs()
|
|||||||
|
|
||||||
class RecipeTag(MealieModel):
|
class RecipeTag(MealieModel):
|
||||||
id: UUID4 | None = None
|
id: UUID4 | None = None
|
||||||
|
group_id: UUID4 | None = None
|
||||||
name: str
|
name: str
|
||||||
slug: str
|
slug: str
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ class CategorySave(CategoryIn):
|
|||||||
|
|
||||||
class CategoryBase(CategoryIn):
|
class CategoryBase(CategoryIn):
|
||||||
id: UUID4
|
id: UUID4
|
||||||
|
group_id: UUID4 | None = None
|
||||||
slug: str
|
slug: str
|
||||||
model_config = ConfigDict(from_attributes=True)
|
model_config = ConfigDict(from_attributes=True)
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ class RecipeToolSave(RecipeToolCreate):
|
|||||||
|
|
||||||
class RecipeToolOut(RecipeToolCreate):
|
class RecipeToolOut(RecipeToolCreate):
|
||||||
id: UUID4
|
id: UUID4
|
||||||
|
group_id: UUID4
|
||||||
slug: str
|
slug: str
|
||||||
|
|
||||||
model_config = ConfigDict(from_attributes=True)
|
model_config = ConfigDict(from_attributes=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user