summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/contrib/auth/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py
index 1f0a0386db..1bddbc2296 100644
--- a/django/contrib/auth/models.py
+++ b/django/contrib/auth/models.py
@@ -286,7 +286,7 @@ class User(models.Model):
"""
if not hasattr(self, '_profile_cache'):
from django.conf import settings
- if not settings.AUTH_PROFILE_MODULE:
+ if not getattr(settings, 'AUTH_PROFILE_MODULE', False):
raise SiteProfileNotAvailable
try:
app_label, model_name = settings.AUTH_PROFILE_MODULE.split('.')