#30391: .get ignores .using
-----------------------------------------+------------------------
               Reporter:  DavionKalhen   |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  Uncategorized  |        Version:  2.1
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 When using multiple databases, when accessing the non-default with .using,
 a subsiquent call to .get will ignore the databases.

 Eg:


 {{{
 comment = Comments.objects.using('specialcmts').get(pk=23)
 #if pk=23 exists in 'default' db, comment will be that value, or it throws
 an error.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30391>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/055.59a1e0bc9fc986752c0e54ed47ff7f59%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to