aboutsummaryrefslogtreecommitdiffstats
path: root/servo
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2017-04-24 19:16:02 +0300
committerFilipp Lepalaan <filipp@mac.com>2017-04-24 19:16:02 +0300
commitf239b9716ceac0e7d3bff5e9b40dda2119a2fb88 (patch)
treef116d950e5f6b470c202727a6574ee7c556af625 /servo
parent40cc37afcd7ae6c12dc3de87223c36035bd3df05 (diff)
downloadServo-f239b9716ceac0e7d3bff5e9b40dda2119a2fb88.tar.gz
Servo-f239b9716ceac0e7d3bff5e9b40dda2119a2fb88.tar.bz2
Servo-f239b9716ceac0e7d3bff5e9b40dda2119a2fb88.zip
Django 1.11 compatibility fixes
Diffstat (limited to 'servo')
-rw-r--r--servo/forms/base.py12
1 files 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'''
<div class="input-group">
@@ -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'''
<div class="input-append date datepicker" data-provide="datepicker" {0}>
@@ -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'''
<div class="input-append date datetimepicker" {0}>