Refactor/user database models (#775)

* fix build error

* drop frontend.old

* improve auto_init decorator

* purge depreciated site settings

* formatting

* update init function

* fix(backend): 🐛 Fix password reset bug

Co-authored-by: Hayden <hay-kot@pm.me>
This commit is contained in:
Hayden
2021-11-04 14:01:37 -08:00
committed by GitHub
parent 40462a95f1
commit ec3b53cdc3
172 changed files with 430 additions and 12255 deletions

View File

@@ -46,7 +46,10 @@ class Group(SqlAlchemyBase, BaseMixins):
server_tasks = orm.relationship(ServerTaskModel, back_populates="group", single_parent=True)
shopping_lists = orm.relationship("ShoppingList", back_populates="group", single_parent=True)
@auto_init({"users", "webhooks", "shopping_lists", "cookbooks", "preferences", "invite_tokens", "mealplans"})
class Config:
exclude = {"users", "webhooks", "shopping_lists", "cookbooks", "preferences", "invite_tokens", "mealplans"}
@auto_init()
def __init__(self, **_) -> None:
pass