#17898: The database option is not honored when `createsuperuser` is called by
`syncdb`
-------------------------+-------------------------------------------------
     Reporter:           |      Owner:  nobody
  charettes              |     Status:  new
         Type:  Bug      |    Version:  1.3
    Component:           |   Keywords:  syncdb createsuperuser database
  contrib.auth           |  multidb
     Severity:  Normal   |  Has patch:  1
 Triage Stage:           |      UI/UX:  0
  Unreviewed             |
Easy pickings:  0        |
-------------------------+-------------------------------------------------
 When calling the `syncdb` command with a `database` kwarg

 {{{
 ./manage.py syncdb --database my_specific_db
 }}}

 The `post_sync_db` signal is dispatched correctly but the
 `django.contrib.auth.management.create_superuser` receiver doesn't take
 the db kwarg into account when calling `createsuperuser` thus it attempts
 to create it on the default database. It should call the command on the
 database specified in syncdb.

 I'm attaching a patch but I really don't know where I should add tests for
 this, I can't find where syncdb is tested. Is it??

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17898>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to