Skip to content

Commit

Permalink
Merge 6959f61 into a840355
Browse files Browse the repository at this point in the history
  • Loading branch information
frankier committed Aug 18, 2015
2 parents a840355 + 6959f61 commit 94a93e2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions betterforms/multiform.py
Expand Up @@ -12,6 +12,7 @@
from django.forms.util import ErrorDict, ErrorList # NOQA

from django.utils.encoding import python_2_unicode_compatible
from django.utils.safestring import mark_safe
from django.utils.six.moves import reduce


Expand Down Expand Up @@ -74,13 +75,13 @@ def non_field_errors(self):
))

def as_table(self):
return ''.join(form.as_table() for form in self.forms.values())
return mark_safe(''.join(form.as_table() for form in self.forms.values()))

def as_ul(self):
return ''.join(form.as_ul() for form in self.forms.values())
return mark_safe(''.join(form.as_ul() for form in self.forms.values()))

def as_p(self):
return ''.join(form.as_p() for form in self.forms.values())
return mark_safe(''.join(form.as_p() for form in self.forms.values()))

def is_multipart(self):
return any(form.is_multipart() for form in self.forms.values())
Expand Down

0 comments on commit 94a93e2

Please sign in to comment.