mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-05 13:35:23 +02:00
fixed more db model definitions
This commit is contained in:
parent
fbfc5b31d6
commit
3adb324b25
1 changed files with 2 additions and 2 deletions
|
@ -131,8 +131,8 @@ class ShoppingList(SqlAlchemyBase, BaseMixins):
|
||||||
collection_class=ordering_list("position"),
|
collection_class=ordering_list("position"),
|
||||||
)
|
)
|
||||||
|
|
||||||
recipe_references: Mapped[ShoppingListRecipeReference] = orm.relationship(
|
recipe_references: Mapped[list[ShoppingListRecipeReference]] = orm.relationship(
|
||||||
ShoppingListRecipeReference, cascade="all, delete, delete-orphan"
|
ShoppingListRecipeReference, cascade="all, delete, delete-orphan", uselist=True
|
||||||
)
|
)
|
||||||
label_settings: Mapped[list["ShoppingListMultiPurposeLabel"]] = orm.relationship(
|
label_settings: Mapped[list["ShoppingListMultiPurposeLabel"]] = orm.relationship(
|
||||||
ShoppingListMultiPurposeLabel,
|
ShoppingListMultiPurposeLabel,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue