Fixup Django 1.5 custom user support

This resolves an ImproperlyConfigured error that can arise in some
circumstances, and conforms to how the Django docs say this should be
done:

https://docs.djangoproject.com/en/dev/topics/auth/customizing/#referencing-the-user-model