﻿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
7584	AUTH_PROFILE_MODULE should be able to provide some default profile	David Danier <goliath.mailinglist@…>		"Currently if there are users without a profile in the database django raises an DoesNotExist-exception. This exception has to be cought everywhere some application wants to access the profile, which leads to a lot of duplicate code...at least if you use the profile a lot inside your project.

This could easily be fixed by adding some way to auto-create a default profile if necessary and possible. One suggestion might be defining some API that could be called, for example:
 * The model (or model-manager) provides some method, that could be called if the profile does not exist
 * Otherwise the DoesNotException gets raised like before

I propose changing User.get_profile() so it supports such an API. Patch using model._default_manager.create_default_profile() follows."		closed	contrib.auth	dev		invalid			Unreviewed	1	0	0	0	0	0
