﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26733	ContentType.get_object_for_this_type fetches models from wrong database	Stefan Wehrmeyer	nobody	"This is the code for `ContentType.get_object_for_this_type`:

{{{
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."	Bug	closed	contrib.contenttypes	1.9	Normal	duplicate			Unreviewed	1	0	0	0	1	0
