mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-04 21:15:22 +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"),
|
||||
)
|
||||
|
||||
recipe_references: Mapped[ShoppingListRecipeReference] = orm.relationship(
|
||||
ShoppingListRecipeReference, cascade="all, delete, delete-orphan"
|
||||
recipe_references: Mapped[list[ShoppingListRecipeReference]] = orm.relationship(
|
||||
ShoppingListRecipeReference, cascade="all, delete, delete-orphan", uselist=True
|
||||
)
|
||||
label_settings: Mapped[list["ShoppingListMultiPurposeLabel"]] = orm.relationship(
|
||||
ShoppingListMultiPurposeLabel,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue