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 MultipleObjectsReturned
c = u'application/x-www-form-urlencoded'
content_type

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

created_at

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

event

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

get_content_type_display(**morekwargs)
get_hmac_digest_display(**morekwargs)
get_next_by_created_at(**morekwargs)
get_next_by_updated_at(**morekwargs)
get_previous_by_created_at(**morekwargs)
get_previous_by_updated_at(**morekwargs)
hmac_digest

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

hmac_secret

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <thorn.django.managers.SubscriberManager object>
updated_at

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

url

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

user

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

child.parent is a ForwardManyToOneDescriptor instance.

user_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

user_ident()[source]
uuid

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.