#16088: Multi-database tests fail in ContentType
-------------------------------------+-------------------------------------
               Reporter:  def@…      |          Owner:  nobody
                   Type:  Bug        |         Status:  reopened
              Milestone:             |      Component:  Database layer
                Version:  1.2        |  (models, ORM)
             Resolution:             |       Severity:  Normal
           Triage Stage:             |       Keywords:  ContentType
  Unreviewed                         |      Has patch:  1
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------

Comment (by anonymous):

 well, i'm testing with 1.2.5, so i had to edit the patch as follows, but
 it didnt' work for me:
 {{{
         #return
 self.model_class()._default_manager.using(self._state.db).get(**kwargs)
         return
 
self.model_class()._default_manager.using(self.model_class().objects.db).get(**kwargs)
 }}}
 but still got the same error:

     django.db.utils.IntegrityError: (1062, "Duplicate entry 'tools-
 station' for key 'app_label'")

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16088#comment:8>
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 [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