Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Str Raise Call NameLoad NameLoad TryExcept body Assign NameStore ListComp TupleLoad NameLoad NameLoad comprehension NameStore NameLoad handlers ExceptHandler type NameLoad body Expr Str Assign NameStore Str Raise Call NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call NameLoad keyword NameLoad keyword Num ClassDef bases body Assign NameStore NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore TupleLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword Num keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num AttributeLoad NameLoad attr decorator_list ClassDef bases body Assign NameStore ListLoad Str Assign NameStore Str decorator_list decorator_list NameLoad ClassDef bases NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list ClassDef bases body Assign NameStore ListLoad Str Assign NameStore Str Assign NameStore Str Assign NameStore Str decorator_list decorator_list NameLoad
N/A django.conf settings django.core.exceptions ImproperlyConfigured django.db models django.utils.encoding python_2_unicode_compatible jsonfield.fields JSONField model_utils.models TimeStampedModel multiselectfield MultiSelectField N/A CONTENT_TYPE_JSON application/json N/A CONTENT_TYPE_FORM application/x-www-form-urlencoded event_choices N/A N/A events N/A N/A N/A  Get the possible events from settings  N/A N/A events None N/A N/A msg Please add some events in settings.WEBHOOK_EVENTS. N/A N/A ImproperlyConfigured msg N/A N/A N/A choices N/A N/A x x N/A x events N/A N/A N/A TypeError N/A N/A  Not a valid iterator, so we raise an exception  N/A msg settings.WEBHOOK_EVENTS must be an iterable object. N/A N/A ImproperlyConfigured msg N/A choices N/A N/A WEBHOOK_EVENTS N/A getattr settings WEBHOOK_EVENTS None N/A WEBHOOK_EVENTS_CHOICES N/A event_choices WEBHOOK_EVENTS EventableModel N/A N/A models Model N/A N/A Helps compose a model that connects to the WebhookTarget model N/A events N/A MultiSelectField choices WEBHOOK_EVENTS_CHOICES max_length 255 Meta N/A N/A N/A abstract True N/A N/A WebhookTarget N/A TimeStampedModel N/A N/A  I would prefer the name 'target', but I worry it's confusing.

        TODO - make owner/event unique_together
     N/A CONTENT_TYPE_JSON CONTENT_TYPE_JSON N/A CONTENT_TYPE_FORM CONTENT_TYPE_FORM N/A CONTENT_TYPE_CHOICES N/A N/A CONTENT_TYPE_JSON CONTENT_TYPE_JSON N/A CONTENT_TYPE_FORM CONTENT_TYPE_FORM N/A WEBHOOK_EVENTS WEBHOOK_EVENTS_CHOICES N/A owner N/A N/A models ForeignKey N/A settings AUTH_USER_MODEL related_name webhooks N/A event N/A N/A models CharField max_length 255 choices WEBHOOK_EVENTS_CHOICES N/A identifier N/A N/A models SlugField max_length 255 blank True N/A target_url N/A N/A models URLField max_length 255 N/A header_content_type N/A N/A models CharField Header content-type max_length 255 choices CONTENT_TYPE_CHOICES default CONTENT_TYPE_JSON __str__ N/A N/A self N/A N/A N/A N/A N/A {}:{}:{} format N/A self event N/A N/A self target_url N/A 30 N/A self identifier N/A Meta N/A N/A N/A ordering N/A -modified N/A get_latest_by modified N/A N/A python_2_unicode_compatible Delivery N/A TimeStampedModel N/A N/A webhook_target N/A N/A models ForeignKey WebhookTarget N/A payload N/A JSONField N/A success N/A N/A models BooleanField default False N/A attempt N/A N/A models IntegerField How many times has this been attempted to be delivered N/A hash_value N/A N/A models CharField max_length 255 blank True N/A notification N/A N/A models TextField Passed back from the Senderable object blank True N/A response_message N/A N/A models TextField Whatever is sent back blank True N/A response_status N/A N/A models IntegerField HTTP status code blank True null True N/A response_content_type N/A N/A models CharField max_length 255 blank True __str__ N/A N/A self N/A N/A N/A N/A N/A {}=>{}=>{} format N/A self success N/A self created N/A self webhook_target N/A Meta N/A N/A N/A ordering N/A -created N/A get_latest_by created N/A verbose_name Delivery N/A verbose_name_plural Deliveries N/A N/A python_2_unicode_compatible