From 3e349d93bc3e1a2a783cdfbfb4ec87368644c269 Mon Sep 17 00:00:00 2001 From: timfeirg Date: Mon, 12 Jun 2017 14:07:59 +0800 Subject: [PATCH] remove reference for CSRF_ENABLED, and use WTF_CSRF_ENABLED instead --- docs/installation.rst | 2 +- tests/superset_test_config.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/installation.rst b/docs/installation.rst index dc4775810c4ee..10aa7d77bbcc0 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -156,7 +156,7 @@ of the parameters you can copy / paste in that configuration module: :: SQLALCHEMY_DATABASE_URI = 'sqlite:////path/to/superset.db' # Flask-WTF flag for CSRF - CSRF_ENABLED = True + WTF_CSRF_ENABLED = True # Set this API key to enable Mapbox visualizations MAPBOX_API_KEY = '' diff --git a/tests/superset_test_config.py b/tests/superset_test_config.py index d98159b0c1cc0..89b2c40c4c3eb 100644 --- a/tests/superset_test_config.py +++ b/tests/superset_test_config.py @@ -16,7 +16,6 @@ SQL_MAX_ROW = 666 TESTING = True -CSRF_ENABLED = False SECRET_KEY = 'thisismyscretkey' WTF_CSRF_ENABLED = False PUBLIC_ROLE_LIKE_GAMMA = True