Ticket #3515: 02-widget-outer-attrs-newforms-admin-fix.diff

File 02-widget-outer-attrs-newforms-admin-fix.diff, 602 bytes (added by Petr Marhoun <petr.marhoun@…>, 17 years ago)
  • django/contrib/admin/widgets.py

    === modified file 'django/contrib/admin/widgets.py'
     
    1818    def __init__(self, verbose_name, is_stacked, attrs=None, choices=()):
    1919        self.verbose_name = verbose_name
    2020        self.is_stacked = is_stacked
    21         super(FilteredSelectMultiple, self).__init__(attrs, choices)
     21        super(FilteredSelectMultiple, self).__init__(attrs, choices=choices)
    2222
    2323    def render(self, name, value, attrs=None, choices=()):
    2424        from django.conf import settings
Back to Top