Django 1.7 compatibility 

get_user_model is leading to problems in Django 1.7 if the app registry is not fully populated (e.g. at import time).

See: https://docs.djangoproject.com/en/dev/ref/applications/#troubleshooting