Browse files

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
  • Loading branch information...
1 parent 15ed0d6 commit 9a1e4cedde309ad8bf5f35f28fb722da86fdd090 @jacobian jacobian committed Aug 25, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/auth/models.py
View
2 django/contrib/auth/models.py
@@ -286,7 +286,7 @@ def get_profile(self):
"""
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('.')

0 comments on commit 9a1e4ce

Please sign in to comment.