﻿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
16379	Override UserManager	thibaultj	nobody	"In contrib.auth, the User class is affected a custom UserManager manager. I cannot find any clean way to override this manager, or to define a new one.

This is a problem in the following case: I created a middleware to manage acl. So in every request, I need to access request.user.profile.something. I'd like to override the get_query_set() method of the UserManager, to use select_related().

The only possible solution seems to monkey patch user class in a middleware, as suggested here :
http://stackoverflow.com/questions/6518280/override-usermanager-in-django"	Bug	closed	contrib.auth	1.3	Normal	invalid	auth,user,manager,usermanager		Unreviewed	0	0	0	0	0	0
