mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-02 16:44:05 -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):
|
||||
id: UUID4 | None = None
|
||||
group_id: UUID4 | None = None
|
||||
name: str
|
||||
slug: str
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ class CategorySave(CategoryIn):
|
||||
|
||||
class CategoryBase(CategoryIn):
|
||||
id: UUID4
|
||||
group_id: UUID4 | None = None
|
||||
slug: str
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ class RecipeToolSave(RecipeToolCreate):
|
||||
|
||||
class RecipeToolOut(RecipeToolCreate):
|
||||
id: UUID4
|
||||
group_id: UUID4
|
||||
slug: str
|
||||
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
Reference in New Issue
Block a user