Commit b3774f97 authored by fred's avatar fred

widgets: update for django 2.2 compatibility

parent e87d0045
......@@ -82,9 +82,9 @@ class PickerWidgetMixin(object):
super(PickerWidgetMixin, self).__init__(attrs, format=self.format)
def render(self, name, value, attrs=None):
def render(self, name, value, attrs=None, **kwargs):
final_attrs = self.build_attrs(attrs)
rendered_widget = super(PickerWidgetMixin, self).render(name, value, final_attrs)
rendered_widget = super(PickerWidgetMixin, self).render(name, value, final_attrs, **kwargs)
# if not set, autoclose have to be true.
self.options.setdefault('autoclose', True)
......
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