typing errors corrected

This commit is contained in:
mariuccio 2016-05-12 15:23:36 +02:00
parent 933cc193d3
commit 1a6ecbbbeb
2 changed files with 5 additions and 4 deletions

View file

@ -20,7 +20,7 @@ from .settings import SUBMIT_VALUE_AS
theme = get_theme(request=None, as_instance=True)
class SelectMultipleInputWithMaxPlugin(FormFieldPlugin):
class SelectMultipleWithMaxInputPlugin(FormFieldPlugin):
"""
Select multiple field plugin with max.
"""

View file

@ -12,7 +12,7 @@ from fobi.helpers import validate_initial_for_multiple_choices
theme = get_theme(request=None, as_instance=True)
class SelectMultipleInputForm(forms.Form, BaseFormFieldPluginForm):
class SelectMultipleWithMaxInputForm(forms.Form, BaseFormFieldPluginForm):
"""
Form for ``SelectMultipleInputPlugin``.
"""
@ -22,7 +22,8 @@ class SelectMultipleInputForm(forms.Form, BaseFormFieldPluginForm):
("choices", ""),
("help_text", ""),
("initial", ""),
("required", False)
("required", False),
("max_choices", "")
]
label = forms.CharField(
@ -74,7 +75,7 @@ class SelectMultipleInputForm(forms.Form, BaseFormFieldPluginForm):
max_choices = forms.IntegerField(
label = _("Max choices"),
required = False,
widget=forms.widgets.NumberInput(ttrs={'class': theme.form_element_html_class})
widget=forms.widgets.NumberInput(attrs={'class': theme.form_element_html_class})
)
def clean_initial(self):