﻿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
12366	AUTH_PROFILE_MODULE='borobeat.credit.BorobeatSiteProfileRecord'	johnnyl	nobody	"If you use the above style (an extra '.' signfying the path of the app) 

Because there is no extra parsing of the path (it only uses *1* split) you get the following error:


Request Method:  	POST
Request URL: 	http://127.0.0.1:8000/admin/credit/borobeatsiteprofilerecord/add/
Exception Type: 	ValueError
Exception Value: 	

too many values to unpack


Source Code:
C:\Python25\lib\site-packages\django\contrib\auth\models.py in get_profile

 276. SiteProfileNotAvailable if this site does not allow profiles.
 277. """"""
 278. if not hasattr(self, '_profile_cache'):
 279. from django.conf import settings
 280. if not getattr(settings, 'AUTH_PROFILE_MODULE', False):
 281. raise SiteProfileNotAvailable
 282. try:

 283. app_label, model_name = settings.AUTH_PROFILE_MODULE.split('.') ...

 284. model = models.get_model(app_label, model_name)
 285. self._profile_cache = model._default_manager.get(user__id__exact=self.id)
 286. self._profile_cache.user = self
 287. except (ImportError, ImproperlyConfigured):
 288. raise SiteProfileNotAvailable
 289. return self._profile_cache

Best Regards,
JohnnyL

"		closed	Uncategorized	1.1		invalid	admin split AUTH_PROFILE_MODULE path		Unreviewed	0	0	0	0	0	0
