#13805: Unable to use .raw() in multi-db environment
------------------------------------+---------------------------------------
Reporter: liangent | Owner: nobody
Status: reopened | Milestone:
Component: Uncategorized | Version: 1.2
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------+---------------------------------------
Changes (by limscoder):
* status: closed => reopened
* resolution: worksforme =>
Comment:
I have the same issue with 1.2.
The code M.objects.using('dbname').raw('...') causes the error: 'QuerySet'
object has no attribute 'raw'.
The 'raw' method needs some way to specify which database to use. Perhaps
a signature such as: .raw(sql, params, database=default)
--
Ticket URL: <http://code.djangoproject.com/ticket/13805#comment:2>
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.