From 844f1eaf826fe670e09972775ef51a2b18e068e2 Mon Sep 17 00:00:00 2001 From: Serge Koval Date: Fri, 7 Feb 2020 10:30:41 -0500 Subject: [PATCH] Werkzeug fixes --- flask_admin/tests/test_model.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flask_admin/tests/test_model.py b/flask_admin/tests/test_model.py index 92bc87839..03d2eac90 100644 --- a/flask_admin/tests/test_model.py +++ b/flask_admin/tests/test_model.py @@ -4,7 +4,10 @@ from flask import Flask -from werkzeug.wsgi import DispatcherMiddleware +try: + from werkzeug.middleware.dispatcher import DispatcherMiddleware +except ImportError: + from werkzeug.wsgi import DispatcherMiddleware from werkzeug.test import Client from wtforms import fields