From 9a1e4cedde309ad8bf5f35f28fb722da86fdd090 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Mon, 25 Aug 2008 16:56:59 +0000 Subject: [PATCH] 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 --- django/contrib/auth/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('.')