A generic subscriptions and notification framework for Django.
Subscriber
is a proxy model. You may find yourself wanting to access the
methods on a subscriber instance from an auth.User
instance. There are a
few workarounds for this on StackOverflow:
- using django, how do i construct a proxy object instance from a superclass object instance?
- customizing request.user with a proxy model that extends Django User model
- User proxy model from request
If you are using Django 1.5 or above, I recommend using the AUTH_USER_MODEL
configuration variable, and setting it to 'subscriptions.Subscriber'
. If
you cannot use Django 1.5 or above, we provide an authentication backend that
loads a Subscriber
instance. Just add the following to your settings:
AUTHENTICATION_BACKENDS = ['subscriptions.auth_backends.SubscriberBackend']