Thanks for your contribution, @moemen . We need to keep it compatible with Django 1.4, but `settings.AUTH_USER_MODEL` will raise an `AttributeError`. It should be `getattr(settings, 'AUTH_USER_MODEL', 'auth.User')` instead. That will work both in < 1.5 and in >= 1.5. What do you think?