#13805: Unable to use .raw() in multi-db environment
------------------------------------+---------------------------------------
          Reporter:  liangent       |         Owner:  nobody
            Status:  closed         |     Milestone:        
         Component:  Uncategorized  |       Version:  1.2   
        Resolution:  worksforme     |      Keywords:        
             Stage:  Unreviewed     |     Has_patch:  1     
        Needs_docs:  0              |   Needs_tests:  0     
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by russellm):

  * status:  reopened => closed
  * resolution:  => worksforme

Comment:

 Such an method already exists:
 {{{
 M.objects.db_manager('dbname').raw('...')
 }}}

 `raw()` isn't a queryset method, it's on the manager only. This is because
 you can't arbitrarily stick raw() on the end of any query, because the
 query might be filtered or otherwise modified in a way that raw() won't
 interact with.

 You can call using() on the end of a raw() because a raw() queryset has
 already locked out other filter()-type options.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13805#comment:4>
Django <http://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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to