Subscriptable Mixin to aggregate subscription funcionality to a any model
Save the object, and run the subscriptions if SUBSCRIPTION_RUN_ON_CHANGE is set to True
Create a subscription of the typ type to this object for a email
Create a subscription of the typ type to this object for a user
Remove a subscription of the typ type to this object for a email
If typ is None, remove all subscriptions of this email
Remove a subscription of the typ type to this object for a user
If typ is None, remove all subscriptions of this user
Subscription objects store subscription from user or email to objects
Every subscription have a type with his own handler
Run the handler of the subscription type for the obj param
Model to store events when dbhandler is runned
DB Subscription Handler, store data in a django model when is runned
Store in the SubscriptionEvent model a reference to the subscription, the object, and a json of the kwargs
Email Subscription Handler, send an email when is runned
send an email to the subscription.email or the subscription.user.email
Generate the email text from the templates modelsubscription/email/subject.txt and modelsubscription/email/body.txt with **kwargs and invitation in the context.