This is the problem when you are using multiple databases.
--
Ticket URL: <https://code.djangoproject.com/ticket/31878>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* type: Uncategorized => Bug
--
Ticket URL: <https://code.djangoproject.com/ticket/31878#comment:1>
* version: 2.2 => master
* stage: Unreviewed => Accepted
Comment:
Agreed, we should pass `database` to the `get_default_username()`.
--
Ticket URL: <https://code.djangoproject.com/ticket/31878#comment:2>
* owner: nobody => Yan Mitrofanov
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/31878#comment:3>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/13301 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/31878#comment:4>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/31878#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"b88f98738fbbdf119f4ff001e4eccf72a77d9518" b88f9873]:
{{{
#!CommitTicketReference repository=""
revision="b88f98738fbbdf119f4ff001e4eccf72a77d9518"
Fixed #31878 -- Made createsuperuser respect --database option in default
usernames.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31878#comment:6>