summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2008-08-25 16:56:59 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2008-08-25 16:56:59 +0000
commit9a1e4cedde309ad8bf5f35f28fb722da86fdd090 (patch)
tree84747e637926dd3edb2cf73f18c590eb359ab6e1
parent15ed0d65b0d036629dade79114093845daaa6f52 (diff)
Fixed #8344: make User.get_profile() work when settings.AUTH_PROFILE_MODULE is unset.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8543 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-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('.')