mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-05-10 22:03:09 +00:00
typing errors corrected
This commit is contained in:
parent
933cc193d3
commit
1a6ecbbbeb
2 changed files with 5 additions and 4 deletions
|
|
@ -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.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue