reviewboard.notifications.forms¶
Notification-related forms.
- class WebHookTargetForm(data=None, initial={}, request=None, *args, **kwargs)[source]¶
Bases:
LocalSiteAwareModelFormMixin
,ModelForm
A form for creating and updating WebHookTargets.
- clean_extra_data() Optional[str] [source]¶
Ensure that extra_data is a valid value.
- Returns:
Either a non-zero length string of JSON-encoded extra data or None.
- Return type:
- clean() dict[str, Any] [source]¶
Validate the state of the entire form.
- Returns:
The cleaned form data.
- class Meta[source]¶
Bases:
object
Metadata for the WebHookTarget form.
- model[source]¶
alias of
WebHookTarget
- __annotations__ = {}¶
- declared_fields = {'events': <django.forms.fields.MultipleChoiceField object>, 'repositories': <django.forms.models.ModelMultipleChoiceField object>, 'url': <django.forms.fields.CharField object>}¶