Fix to issue #342

As per:
https://docs.djangoproject.com/en/1.7/topics/auth/customizing/

New in Django 1.7:
Generally speaking, you should reference the User model with the AUTH_USER_MODEL setting in code that is executed at import time. get_user_model() only works once Django has imported all models.