Skip to content

Commit

Permalink
fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
tzangms committed May 3, 2017
1 parent fadb1fd commit 628b6c9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Expand Up @@ -17,10 +17,6 @@ env:
- TOX_ENV=py34-dj110
- TOX_ENV=py34-dj111

python:
- "2.7"
- "3.4"

install:
- pip install tox coverage coveralls

Expand Down
3 changes: 2 additions & 1 deletion bootstrapform/templatetags/bootstrap.py
Expand Up @@ -78,7 +78,8 @@ def render(element, markup_classes):
template = get_template("bootstrapform/form.html")
context = {'form': element, 'classes': markup_classes}

if django.VERSION[0] * 1000 + django.VERSION[1] < 1008:

if django_version < (1, 11):
context = Context(context)

if django_version >= (1, 8):
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
@@ -1,5 +1,5 @@
[tox]
envlist = {py27,py34}-dj{15,16,17,18,19,110}
envlist = {py27,py34}-dj{15,16,17,18,19,110,111}
skipsdist=True


Expand All @@ -15,6 +15,7 @@ deps =
dj18: django>=1.8,<1.9
dj19: django>=1.9,<1.10
dj110: django>=1.10,<1.11
dj111: django>=1.10,<1.11
commands = python setup.py test


Expand Down

0 comments on commit 628b6c9

Please sign in to comment.