fobi.contrib.plugins.form_elements.fields.select_multiple_with_max package¶
Submodules¶
fobi.contrib.plugins.form_elements.fields.select_multiple_with_max.apps module¶
-
class
fobi.contrib.plugins.form_elements.fields.select_multiple_with_max.apps.
Config
(app_name, app_module)[source]¶ Bases:
django.apps.config.AppConfig
Config.
-
label
= 'fobi_contrib_plugins_form_elements_fields_select_multiple_with_max'¶
-
name
= 'fobi.contrib.plugins.form_elements.fields.select_multiple_with_max'¶
-
fobi.contrib.plugins.form_elements.fields.select_multiple_with_max.conf module¶
-
fobi.contrib.plugins.form_elements.fields.select_multiple_with_max.conf.
get_setting
(setting, override=None)[source]¶ Get setting.
Get a setting from fobi.contrib.plugins.form_elements.fields.select_multiple_with_max conf module, falling back to the default.
If override is not None, it will be used instead of the setting.
Parameters: - setting – String with setting name
- override – Value to use when no setting is available. Defaults to None.
Returns: Setting value.
fobi.contrib.plugins.form_elements.fields.select_multiple_with_max.defaults module¶
fobi.contrib.plugins.form_elements.fields.select_multiple_with_max.fields module¶
-
class
fobi.contrib.plugins.form_elements.fields.select_multiple_with_max.fields.
MultipleChoiceWithMaxField
(max_choices=None, choices=(), required=True, widget=None, label=None, initial=None, help_text='', *args, **kwargs)[source]¶ Bases:
django.forms.fields.MultipleChoiceField
Multiple choice with max field.
fobi.contrib.plugins.form_elements.fields.select_multiple_with_max.fobi_form_elements module¶
-
class
fobi.contrib.plugins.form_elements.fields.select_multiple_with_max.fobi_form_elements.
SelectMultipleWithMaxInputPlugin
(user=None)[source]¶ Bases:
fobi.base.FormFieldPlugin
Select multiple with max field plugin.
-
form
¶ alias of
SelectMultipleWithMaxInputForm
-
group
= <django.utils.functional.__proxy__ object>¶
-
name
= <django.utils.functional.__proxy__ object>¶
-
submit_plugin_form_data
(form_entry, request, form)[source]¶ Submit plugin form data/process.
Parameters: - form_entry (fobi.models.FormEntry) – Instance of
fobi.models.FormEntry
. - request (django.http.HttpRequest) –
- form (django.forms.Form) –
- form_entry (fobi.models.FormEntry) – Instance of
-
uid
= 'select_multiple_with_max'¶
-
fobi.contrib.plugins.form_elements.fields.select_multiple_with_max.forms module¶
-
class
fobi.contrib.plugins.form_elements.fields.select_multiple_with_max.forms.
SelectMultipleWithMaxInputForm
(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None)[source]¶ Bases:
django.forms.forms.Form
,fobi.base.BaseFormFieldPluginForm
Form for
SelectMultipleWithMaxInputPlugin
.-
base_fields
= OrderedDict([('label', <django.forms.fields.CharField object at 0x7f274d8c8310>), ('name', <django.forms.fields.CharField object at 0x7f274d8c8350>), ('choices', <django.forms.fields.CharField object at 0x7f274d8c8450>), ('help_text', <django.forms.fields.CharField object at 0x7f274d8c8510>), ('initial', <django.forms.fields.CharField object at 0x7f274d8c85d0>), ('required', <django.forms.fields.BooleanField object at 0x7f274d8c8690>), ('max_choices', <django.forms.fields.IntegerField object at 0x7f274d8c8750>)])¶
-
declared_fields
= OrderedDict([('label', <django.forms.fields.CharField object at 0x7f274d8c8310>), ('name', <django.forms.fields.CharField object at 0x7f274d8c8350>), ('choices', <django.forms.fields.CharField object at 0x7f274d8c8450>), ('help_text', <django.forms.fields.CharField object at 0x7f274d8c8510>), ('initial', <django.forms.fields.CharField object at 0x7f274d8c85d0>), ('required', <django.forms.fields.BooleanField object at 0x7f274d8c8690>), ('max_choices', <django.forms.fields.IntegerField object at 0x7f274d8c8750>)])¶
-
media
¶
-
plugin_data_fields
= [('label', ''), ('name', ''), ('choices', ''), ('help_text', ''), ('initial', ''), ('required', False), ('max_choices', '')]¶
-