Ticket #8344: get_profile.r8366.diff

File get_profile.r8366.diff, 597 bytes (added by Jannis Leidel, 16 years ago)

initial patch to fix get_profile()

  • django/contrib/auth/models.py

     
    286286        """
    287287        if not hasattr(self, '_profile_cache'):
    288288            from django.conf import settings
    289             if not settings.AUTH_PROFILE_MODULE:
     289            if not getattr(settings, 'AUTH_PROFILE_MODULE', False):
    290290                raise SiteProfileNotAvailable
    291291            try:
    292292                app_label, model_name = settings.AUTH_PROFILE_MODULE.split('.')
Back to Top