mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02: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:
parent
d243bbf0f8
commit
b00c9acd5c
3 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue