Issue #5 resolved

None name and legend

Anonymous created an issue

Currently {{{fieldsets = ((None, {'fields': ('field1',),}),)}}} causes that in template {{{{{ fieldset.legend }}}}} will display {{{'None'}}} string and also {{{{% if fieldset.legend %}}}} will return {{{True}}}. This is because {{{ class Fieldset(object): ... def init(self, form, name, boundfields, legend='', classes='', description=''): ... self.legend = mark_safe(legend) ... }}} instead of {{{if legend: self.legend = mark_safe(legend)}}}.

Comments (1)

  1. Log in to comment