#25947: Query's str() method fails when 'default' database is empty
-------------------------------------+-------------------------------------
     Reporter:  liboz                |                    Owner:  jayvynl
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  1.9
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by jayvynl):

 * owner:  Teddy Ni => jayvynl

Comment:

 I think it's reasonable to use `QuerySet.db()` to replace
 `DEFAULT_DB_ALIAS` in `sql_with_db` method. To achieve this, `QuerySet`
 should pass itself to `Query`, this only need just a few lines change.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/25947#comment:7>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e9ca5b20c-e0ce22f1-98be-495f-bc3c-83002b0a4ce0-000000%40eu-central-1.amazonses.com.

Reply via email to