Skip to content

Commit 9cfbf07

Browse files
author
Emily Scoular
committed
Fix context for boundfields when Django version >= 1.8
1 parent 3b68564 commit 9cfbf07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bootstrapform/templatetags/bootstrap.py

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

80-
if django_version >= (1, 8):
81-
context = context.flatten()
80+
if django_version >= (1, 8):
81+
context = context.flatten()
8282

8383
return template.render(context)
8484

0 commit comments

Comments
 (0)