Skip to content

Commit

Permalink
Merge 7f97ef6 into d709e2b
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoleodev committed Apr 6, 2016
2 parents d709e2b + 7f97ef6 commit 9bc9287
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion bootstrapform/templatetags/bootstrap.py
@@ -1,4 +1,4 @@
from django import forms
from django import forms, VERSION as django_version
from django.template import Context
from django.template.loader import get_template
from django import template
Expand Down Expand Up @@ -77,6 +77,9 @@ def render(element, markup_classes):
template = get_template("bootstrapform/form.html")
context = Context({'form': element, 'classes': markup_classes})

if django_version >= (1, 8):
context = context.flatten()

return template.render(context)


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


Expand All @@ -13,6 +13,7 @@ deps =
dj16: django>=1.6,<1.7
dj17: django>=1.7,<1.8
dj18: django>=1.8,<1.9
dj19: django>=1.9,<1.10
commands = python setup.py test


Expand Down

0 comments on commit 9bc9287

Please sign in to comment.