cdh.systemmessages.forms module
- class cdh.systemmessages.forms.SystemMessageForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]
Bases:
TemplatedModelForm
A Form apps can use to quickly setup creation/editing in their user interface, in addition to the Django Admin integration.
Form fields:
message
: Systemmessage.message (CharField
)message_nl
: Systemmessage.message [nl] (CharField
)message_en
: Systemmessage.message [en] (CharField
)color
: Systemmessage.color (TypedChoiceField
)not_before
: Systemmessage.not_before (DateTimeField
)not_after
: Systemmessage.not_after (DateTimeField
)
- property media
Return all media required to render the widgets on this form.