Jump to >

reviewboard.notifications.forms

Notification-related forms.

class WebHookTargetForm(data=None, initial={}, request=None, *args, **kwargs)[source]

Bases: reviewboard.site.mixins.LocalSiteAwareModelFormMixin, django.forms.models.ModelForm

A form for creating and updating WebHookTargets.

clean_extra_data()[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:unicode
clean_events()[source]
clean()[source]

Validate the state of the entire form.

Returns:The cleaned form data.
class Meta[source]
model[source]

alias of reviewboard.notifications.models.WebHookTarget

widgets = {u'apply_to': <django.forms.widgets.RadioSelect object at 0x10b35a8d0>, u'repositories': <django.contrib.admin.widgets.FilteredSelectMultiple object at 0x10b35a950>}[source]
error_messages = {u'repositories': {u'invalid_choice': _(u'A repository with ID %(value)s was not found.'), u'invalid_pk_value': _(u'"%(pk)s" is an invalid repository ID.')}}[source]
fields = u'__all__'[source]
declared_fields = {'url': <django.forms.fields.CharField object at 0x10b35a890>}[source]