django-bootstrap3-datetimepicker icon indicating copy to clipboard operation
django-bootstrap3-datetimepicker copied to clipboard

Fix render() for Django 1.11

Open blag opened this issue 8 years ago • 0 comments

According to #28095, the signature of Widget.build_attrs() changed from:

class Widget(...):
    # ...
    def build_attrs(self, attrs, **kwargs):
        # ...

to:

class Widget(...):
    # ...
    def build_attrs(self, attrs, extra_args=None):
        # ...

this fixes DateTimePicker.render() to use the new signature while remaining reverse compatible with Django < 1.11.

blag avatar May 27 '17 10:05 blag