﻿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
23017	Default Managers	rbatukaev@…	nobody	"When I do not define any managers, I get no errors. However, when I do the following:

{{{
class User(AbstractUser):
    # some fields
    objects = model.Manager()
    hstore_manager = hstore.HStoreManager()
}}}

I get

{{{
AttributeError at'Manager' object has no attribute 'get_by_natural_key'
}}}

There is something wrong with /django/contrib/auth/backends.py in authenticate method on this line:

{{{
user = UserModel._default_manager.get_by_natural_key(username)
}}}

"	Bug	closed	contrib.auth	1.7-rc-1	Normal	invalid			Unreviewed	0	0	0	0	0	0
