~netlandish/django-wiki

d9d05f63bde76dbc957e7c2032d5c71aa7e4d62a — Benjamin Bach 8 years ago 0f6b271
Fix reopened #424
1 files changed, 5 insertions(+), 5 deletions(-)

M wiki/models/__init__.py
M wiki/models/__init__.py => wiki/models/__init__.py +5 -5
@@ 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