From d9d05f63bde76dbc957e7c2032d5c71aa7e4d62a Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Tue, 23 Aug 2016 15:14:19 +0200 Subject: [PATCH] Fix reopened #424 --- wiki/models/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wiki/models/__init__.py b/wiki/models/__init__.py index 136a4cee..3b54b4d5 100644 --- a/wiki/models/__init__.py +++ b/wiki/models/__init__.py @@ -9,9 +9,9 @@ import warnings from six import string_types # TODO: Don't use wildcards -from .article import * -from .pluginbase import * -from .urlpath import * +from .article import * # noqa +from .pluginbase import * # noqa +from .urlpath import * # noqa # TODO: Should the below stuff be executed a more logical place? # Follow Django's default_settings.py / settings.py pattern and put these @@ -51,7 +51,7 @@ if hasattr(django_settings, 'TEMPLATES'): if len(backends) == 1: TEMPLATE_CONTEXT_PROCESSORS = backends[0].get('OPTIONS', {}).get('context_processors', []) -if 'django.contrib.auth.context_processors.auth' not in django_settings.TEMPLATE_CONTEXT_PROCESSORS: +if 'django.contrib.auth.context_processors.auth' not in TEMPLATE_CONTEXT_PROCESSORS: raise ImproperlyConfigured( 'django-wiki: needs django.contrib.auth.context_processors.auth in TEMPLATE_CONTEXT_PROCESSORS') @@ -75,7 +75,7 @@ if VERSION < (1, 7): "django-wiki: No south in your INSTALLED_APPS. This is highly discouraged.") -from django.core import urlresolvers +from django.core import urlresolvers # noqa original_django_reverse = urlresolvers.reverse -- 2.45.2