Change user to get_user_model() according to https://docs.djangoproject.com/en/1.6/topics/auth/customizing/#referencing-the-user-model