brantyoung/django-notifications — pull request #15 by ziweizhou (2013-05-22 15:18:23+00:00)
Title: Added support for custom user model

use following code for support custom user model with fallback code if user is use django <1.5 version

try:
from django.contrib.auth import get_user_model
except ImportError: # django < 1.5
from django.contrib.auth.models import User
else:
User = get_user_model()