diff --git a/wagtail/contrib/wagtailfrontendcache/backends.py b/wagtail/contrib/wagtailfrontendcache/backends.py index 4a5d07226b..1683e602b8 100644 --- a/wagtail/contrib/wagtailfrontendcache/backends.py +++ b/wagtail/contrib/wagtailfrontendcache/backends.py @@ -1,8 +1,8 @@ from __future__ import absolute_import, unicode_literals -from collections import defaultdict import logging import uuid +from collections import defaultdict import requests from django.core.exceptions import ImproperlyConfigured diff --git a/wagtail/contrib/wagtailfrontendcache/tests.py b/wagtail/contrib/wagtailfrontendcache/tests.py index c9e6f03ef9..bd75412a44 100644 --- a/wagtail/contrib/wagtailfrontendcache/tests.py +++ b/wagtail/contrib/wagtailfrontendcache/tests.py @@ -1,7 +1,6 @@ from __future__ import absolute_import, unicode_literals import mock - from django.core.exceptions import ImproperlyConfigured from django.test import TestCase from django.test.utils import override_settings @@ -12,7 +11,9 @@ from wagtail.contrib.wagtailfrontendcache.utils import get_backends from wagtail.tests.testapp.models import EventIndex from wagtail.wagtailcore.models import Page -from .utils import purge_url_from_cache, purge_urls_from_cache, purge_page_from_cache, purge_pages_from_cache, PurgeBatch +from .utils import ( + PurgeBatch, purge_page_from_cache, purge_pages_from_cache, purge_url_from_cache, + purge_urls_from_cache) class TestBackendConfiguration(TestCase):