class documentation
class EasySubsiteChoiceField(forms.MultipleChoiceField):
Constructor: EasySubsiteChoiceField.from_enum(enum, **kwargs)
Simple subclass that provides a convenience method to create subsite fields.
| Class Method | from |
Create a field from a subsite enum. |
Create a field from a subsite enum.
All this does is pass the enum's choices and values to the constructor as
choices and initial, respectively. It makes the field not required and
uses a checkbox widget with the checkbox_attrs as attrs.