#19068: comments in a multiple database context
----------------------------------+--------------------------------------
     Reporter:  esimorre          |                    Owner:  nobody
         Type:  Bug               |                   Status:  closed
    Component:  contrib.comments  |                  Version:
     Severity:  Normal            |               Resolution:  needsinfo
     Keywords:                    |             Triage Stage:  Unreviewed
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+--------------------------------------

Comment (by esimorre):

 my contenttypes' table is in sqlitedb , self.model_class() is stored in
 oracledb

 this expression is incorrect because "self" is a ContentType object
 {{{self.model_class()._base_manager.using(self._state.db).get(**kwargs)}}}

 The commented object (oracledb) is searched in the contenttype sqlitedb.
 If "objects" is used, the db is right.

 I have no trace (the project is deployed in an intranet), but the error
 message is: table xxx not found.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19068#comment:3>
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 https://groups.google.com/groups/opt_out.


Reply via email to