Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion polymorphic_tree/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
Model that inherits from both Polymorphic and MPTT.
"""
import uuid
from six import integer_types, string_types

import django
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ValidationError
from django.utils.encoding import force_text
from django.utils.six import integer_types, string_types
from django.utils.translation import ugettext_lazy as _
from future.utils import with_metaclass
from mptt.exceptions import InvalidMove
Expand Down
10 changes: 10 additions & 0 deletions runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
'django.template.context_processors.request',
'django.template.context_processors.static',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
),
},
},
Expand All @@ -76,6 +77,15 @@
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.locale.LocaleMiddleware', # / will be redirected to /<locale>/
),
MIDDLEWARE=(
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.locale.LocaleMiddleware', # / will be redirected to /<locale>/
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
),
ROOT_URLCONF = 'example.urls',
TEST_RUNNER = 'django.test.runner.DiscoverRunner',
)
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def find_version(*parts):
'django-mptt>=0.8.0',
'django-tag-parser>=2.1',
'future>=0.12.2',
'six>=1.13.0',
],
requires=[
'Django (>=1.8)',
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ envlist=

[testenv]
deps =
six >= 1.13.0
django-polymorphic >= 2.0
django-mptt >= 0.9.0
django111: Django >= 1.11, < 1.12
Expand Down