Skip to content

Commit 39a8c39

Browse files
committed
Merge pull request tzangms#61 from bulv1ne/master
Fix form required_css_class not applied for individual fields
2 parents f078b3f + 29f30c2 commit 39a8c39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bootstrapform/templatetags/bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def render(element, markup_classes):
6464
if element_type == 'boundfield':
6565
add_input_classes(element)
6666
template = get_template("bootstrapform/field.html")
67-
context = Context({'field': element, 'classes': markup_classes})
67+
context = Context({'field': element, 'classes': markup_classes, 'form': element.form})
6868
else:
6969
has_management = getattr(element, 'management_form', None)
7070
if has_management:

0 commit comments

Comments
 (0)