Skip to content

Commit 628b6c9

Browse files
committed
fix test error
1 parent fadb1fd commit 628b6c9

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ env:
1717
- TOX_ENV=py34-dj110
1818
- TOX_ENV=py34-dj111
1919

20-
python:
21-
- "2.7"
22-
- "3.4"
23-
2420
install:
2521
- pip install tox coverage coveralls
2622

bootstrapform/templatetags/bootstrap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ def render(element, markup_classes):
7878
template = get_template("bootstrapform/form.html")
7979
context = {'form': element, 'classes': markup_classes}
8080

81-
if django.VERSION[0] * 1000 + django.VERSION[1] < 1008:
81+
82+
if django_version < (1, 11):
8283
context = Context(context)
8384

8485
if django_version >= (1, 8):

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = {py27,py34}-dj{15,16,17,18,19,110}
2+
envlist = {py27,py34}-dj{15,16,17,18,19,110,111}
33
skipsdist=True
44

55

@@ -15,6 +15,7 @@ deps =
1515
dj18: django>=1.8,<1.9
1616
dj19: django>=1.9,<1.10
1717
dj110: django>=1.10,<1.11
18+
dj111: django>=1.10,<1.11
1819
commands = python setup.py test
1920

2021

0 commit comments

Comments
 (0)