diff --git a/bootstrapform/templatetags/bootstrap.py b/bootstrapform/templatetags/bootstrap.py index c720db8..71512aa 100644 --- a/bootstrapform/templatetags/bootstrap.py +++ b/bootstrapform/templatetags/bootstrap.py @@ -77,8 +77,8 @@ 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() + if django_version >= (1, 8): + context = context.flatten() return template.render(context)