Skip to content

Commit b424fd7

Browse files
author
Martin Pauly
committed
Update imports to drop Django 1.8 support
1 parent 05e5a6c commit b424fd7

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

test_haystack/solr_tests/test_admin.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
from django.contrib.auth.models import User
88
from django.test import TestCase
99
from django.test.utils import override_settings
10-
if django.VERSION < (1, 10):
11-
from django.core.urlresolvers import reverse
12-
else:
13-
from django.urls import reverse
10+
from django.urls import reverse
1411

1512
from haystack import connections, reset_search_queries
1613
from haystack.utils.loading import UnifiedIndex

test_haystack/test_app_loading.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
from types import GeneratorType, ModuleType
55

66
import django
7-
if django.VERSION < (1, 10):
8-
from django.core.urlresolvers import reverse
9-
else:
10-
from django.urls import reverse
7+
from django.urls import reverse
118
from django.test import TestCase
129

1310
from haystack.utils import app_loading

test_haystack/test_views.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
from django.http import HttpRequest, QueryDict
1111
from django.test import TestCase, override_settings
1212
from django.utils.six.moves import queue
13-
if django.VERSION < (1, 10):
14-
from django.core.urlresolvers import reverse
15-
else:
16-
from django.urls import reverse
13+
from django.urls import reverse
1714
from test_haystack.core.models import AnotherMockModel, MockModel
1815

1916
from haystack import connections, indexes

0 commit comments

Comments
 (0)