mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
fixed more db model definitions
This commit is contained in:
parent
fbfc5b31d6
commit
3adb324b25
@ -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…
x
Reference in New Issue
Block a user