Skip to content

Commit

Permalink
Merge 038f688 into 9755e29
Browse files Browse the repository at this point in the history
  • Loading branch information
metteludwig committed Dec 9, 2015
2 parents 9755e29 + 038f688 commit 831f34b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bootstrapform/templatetags/bootstrap.py
Expand Up @@ -55,9 +55,7 @@ def add_input_classes(field):


def render(element, markup_classes):
element_type = element.__class__.__name__.lower()

if element_type == 'boundfield':
if isinstance(element, forms.forms.BoundField):
add_input_classes(element)
template = get_template("bootstrapform/field.html")
context = Context({'field': element, 'classes': markup_classes, 'form': element.form})
Expand Down

0 comments on commit 831f34b

Please sign in to comment.