Permalink
Browse files

Fixed Fieldset's init signature - *args needs to go after any named k…

…wargs.
  • Loading branch information...
1 parent 48e6f64 commit fde22e2254d02b1c3bcfa11b1908aa35cd55fa0e @mikery mikery committed Feb 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bootstrap/forms.py
View
@@ -159,7 +159,7 @@ def __unicode__(self):
class Fieldset(object):
""" Fieldset container. Renders to a <fieldset>. """
- def __init__(self, legend, *fields, css_class=None):
+ def __init__(self, legend, css_class=None, *fields):
self.legend_html = legend and ('<legend>%s</legend>' % legend) or ''
self.fields = fields
self.css_class = css_class

0 comments on commit fde22e2

Please sign in to comment.