{{{
self.model_class()._base_manager.using(self._state.db).get(**kwargs)
}}}
It forces the using of the contenttypes database for fetching the model
and that can fail when the model only appears in the non-default database
(where contenttypes ususally lives). Removing the `.using` clause fixes
this.
This bug manifests in the admin "View on site" button that uses the
contenttypes framework to redirect. A pull request is coming up.
--
Ticket URL: <https://code.djangoproject.com/ticket/26733>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Pull request here: https://github.com/django/django/pull/6748
--
Ticket URL: <https://code.djangoproject.com/ticket/26733#comment:1>
* status: new => closed
* resolution: => duplicate
Comment:
Duplicate of #16281
--
Ticket URL: <https://code.djangoproject.com/ticket/26733#comment:2>