From f239b9716ceac0e7d3bff5e9b40dda2119a2fb88 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 24 Apr 2017 19:16:02 +0300 Subject: Django 1.11 compatibility fixes --- servo/forms/base.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/servo/forms/base.py b/servo/forms/base.py index 1b97521..64c672f 100644 --- a/servo/forms/base.py +++ b/servo/forms/base.py @@ -39,9 +39,9 @@ class TextInput(forms.TextInput): class AutocompleteCharField(forms.CharField): widget = forms.TextInput(attrs={ - 'class' : "input typeahead", - 'data-provide' : "typeahead" - }) + 'class': "input typeahead", + 'data-provide': "typeahead" + }) def __init__(self, values, *args, **kwargs): super(AutocompleteCharField, self).__init__(*args, **kwargs) @@ -75,7 +75,7 @@ class SearchFieldInput(forms.TextInput): def render(self, name, value, attrs=None): field = super(SearchFieldInput, self).render(name, value, attrs) - final_attrs = self.build_attrs(attrs, name=name) + final_attrs = self.build_attrs(attrs) output = format_html(u'''
@@ -105,7 +105,7 @@ class DatepickerInput(forms.DateInput): attrs['data-format'] = date_format field = super(DatepickerInput, self).render(name, value, attrs) - final_attrs = self.build_attrs(attrs, name=name) + final_attrs = self.build_attrs(attrs) output = format_html(u'''
@@ -134,7 +134,7 @@ class DateTimePickerInput(forms.DateTimeInput): attrs['class'] = 'input-medium' field = super(DateTimePickerInput, self).render(name, value, attrs) - final_attrs = self.build_attrs(attrs, name=name) + final_attrs = self.build_attrs(attrs) output = format_html(u'''
-- cgit v1.2.3