remove jsonfield from INSTALLED_APPS
-from __future__ import unicode_literals
-
from django.utils.text import format_lazy
-from cmsplugin_cascade.extra_fields.config import PluginExtraFieldsConfig
-from django import VERSION as DJANGO_VERSION
-
-if DJANGO_VERSION < (2, 0):
- from django.core.urlresolvers import reverse_lazy
-
- MIDDLEWARE = [
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'django.middleware.locale.LocaleMiddleware',
- 'django.middleware.common.CommonMiddleware',
- 'django.middleware.clickjacking.XFrameOptionsMiddleware',
- 'cms.middleware.user.CurrentUserMiddleware',
- 'cms.middleware.page.CurrentPageMiddleware',
- 'cms.middleware.toolbar.ToolbarMiddleware',
- 'cms.middleware.language.LanguageCookieMiddleware',
- ]
+from django.urls import reverse_lazy
+from cmsplugin_cascade.extra_fields.config import PluginExtraFieldsConfig
-if DJANGO_VERSION >= (2, 0):
- from django.urls import reverse_lazy
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
@@ -88,7 +67,6 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.admin',
'django.contrib.staticfiles',
- 'jsonfield',
'filer',
'easy_thumbnails',
'treebeard',
