Fix context for boundfields when Django version >= 1.8

This commit is contained in:
Emily Scoular 2016-08-05 09:42:42 -07:00
parent 3b685646ac
commit 9cfbf07909

View File

@ -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)