thorn.django.models¶
Django models required to dispatch webhook events.
-
class
thorn.django.models.Subscriber(id, uuid, event, url, user, hmac_secret, hmac_digest, content_type, created_at, updated_at)[source]¶ -
exception
DoesNotExist¶
-
exception
Subscriber.MultipleObjectsReturned¶
-
Subscriber.content_type¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Subscriber.created_at¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Subscriber.event¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Subscriber.get_content_type_display(*moreargs, **morekwargs)¶
-
Subscriber.get_hmac_digest_display(*moreargs, **morekwargs)¶
-
Subscriber.get_next_by_created_at(*moreargs, **morekwargs)¶
-
Subscriber.get_next_by_updated_at(*moreargs, **morekwargs)¶
-
Subscriber.get_previous_by_created_at(*moreargs, **morekwargs)¶
-
Subscriber.get_previous_by_updated_at(*moreargs, **morekwargs)¶
-
Subscriber.hmac_digest¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Subscriber.hmac_secret¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Subscriber.id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Subscriber.objects= <thorn.django.managers.SubscriberManager object>¶
-
Subscriber.updated_at¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Subscriber.url¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Subscriber.user¶ Accessor to the related object on the forward side of a many-to-one or one-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
child.parentis aForwardManyToOneDescriptorinstance.
-
Subscriber.user_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Subscriber.uuid¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception