1 From 4b4ac26ef1cbb0b5b2354c251b216498325d0411 Mon Sep 17 00:00:00 2001
2 From: Flakebi <flakebi@t-online.de>
3 Date: Sat, 2 Dec 2023 16:31:50 +0100
4 Subject: [PATCH 4/6] Fix flask-session and powerdns-admin compatibility
6 flask-session and powerdns-admin both try to add sqlalchemy to flask.
7 Reuse the database for flask-session.
9 powerdnsadmin/__init__.py | 1 +
10 1 file changed, 1 insertion(+)
12 diff --git a/powerdnsadmin/__init__.py b/powerdnsadmin/__init__.py
13 index d447a00..653af33 100755
14 --- a/powerdnsadmin/__init__.py
15 +++ b/powerdnsadmin/__init__.py
16 @@ -60,6 +60,7 @@ def create_app(config=None):
17 if 'SESSION_TYPE' in os.environ:
18 app.config['SESSION_TYPE'] = os.environ.get('SESSION_TYPE')
20 + app.config['SESSION_SQLALCHEMY'] = models.base.db
23 # create sessions table if using sqlalchemy backend