{{{
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)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23017>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/23017#comment:1>
* status: new => closed
* resolution: => invalid
Comment:
The default manager should inherit from
[https://docs.djangoproject.com/en/dev/topics/auth/customizing/#django.contrib.auth.models.BaseUserManager
BaseUserManager] or implement its methods.
--
Ticket URL: <https://code.djangoproject.com/ticket/23017#comment:2>