Commit 977de2d5 authored by Michal Čihař's avatar Michal Čihař

Remove debugging code

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 4ce17989
......@@ -59,6 +59,7 @@ class BootstrapForm(Form):
Adds HTML output in divs and spans.
'''
def as_div(self):
# TODO: not for checkbox (should have checkbox class)
return self._html_output(
normal_row=DIV_TEMPLATE,
error_row=u'%s',
......@@ -87,7 +88,6 @@ class BootstrapForm(Form):
def __init__(self, *args, **kwargs):
kwargs['error_class'] = BootstrapErrorList
super(BootstrapForm, self).__init__(*args, **kwargs)
print repr(self.fields)
# TODO: not for checkbox (should have checkbox class)
for field in self.fields:
print repr(field)
self.fields[field].widget.attrs['class'] = 'form-control'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment