In Django 1.6.5, contrib\auth\management\_init_.py line 116 referes
'created_models' in 'UserModel', but in Django 1.7 this appears to be
modified (same file, line 132) to check if UserModel.objects.exists() not.
However, we have renamed our user manager to simply "users", so this
throws an errors when executed.
--
Ticket URL: <https://code.djangoproject.com/ticket/22652>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* severity: Normal => Release blocker
* needs_better_patch: => 0
* component: Core (URLs) => contrib.auth
* needs_tests: => 0
* easy: 0 => 1
* needs_docs: => 0
* stage: Unreviewed => Accepted
Comment:
I guess that simply replacing `objects` by `_default_manager` should solve
this.
--
Ticket URL: <https://code.djangoproject.com/ticket/22652#comment:1>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"b68fac7e88c08cd0bb3dde86388292ddc863eba5"]:
{{{
#!CommitTicketReference repository=""
revision="b68fac7e88c08cd0bb3dde86388292ddc863eba5"
Fixed #22652 -- Replaced UserModel.objects with
UserModel._default_manager.
Thanks alexdlaird for the report.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/22652#comment:2>
Comment (by Tim Graham <timograham@…>):
In [changeset:"1e78d132dad66cae93b94e3c854bcb4fd4b49b6e"]:
{{{
#!CommitTicketReference repository=""
revision="1e78d132dad66cae93b94e3c854bcb4fd4b49b6e"
[1.7.x] Fixed #22652 -- Replaced UserModel.objects with
UserModel._default_manager.
Thanks alexdlaird for the report.
Backport of b68fac7e88 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/22652#comment:3>