﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
17966	Tests fail with trivial usage of AUTH_PROFILE_MODULE	Steve Lacy	nobody	"I started a totally blank project using 1.4 release (Version in Ticket in 1.4-rc2 because there's no 1.4 release in the ticket system yet). 

I added a new app called ""account"" with a models.py that looks like this:


{{{
from django.db import models
from django.contrib.auth.models import User
    
class Account(models.Model):
    user = models.ForeignKey(User)

}}}

I put ""account"" in INSTALLED_APPS
I put ""AUTH_PROFILE_MODULE = 'account.Account'"" in settings.py 

I ran python ./manage.py test and got:


{{{
ERROR: test_site_profile_not_available (django.contrib.auth.tests.models.ProfileTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/home/slacy/src/tmp/env/local/lib/python2.7/site-packages/django/contrib/auth/tests/models.py"", line 29, in test_site_profile_not_available
    del settings.AUTH_PROFILE_MODULE
  File ""/home/slacy/src/tmp/env/local/lib/python2.7/site-packages/django/utils/functional.py"", line 215, in __delattr__
    delattr(self._wrapped, name)
AttributeError: AUTH_PROFILE_MODULE

----------------------------------------------------------------------
Ran 417 tests in 10.302s

FAILED (errors=1, skipped=1)
Destroying test database for alias 'default'...

}}}
"	Bug	closed	contrib.auth	1.4	Normal	fixed		tiramiseb rob@… taylor@… osirius@… scotty@…	Accepted	0	0	0	0	0	0
