X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/6dc154ec98d58159b3e75447ce7b7fe5642acec4..6de576dc999886f300c5abc74f4a2433a884d3b8:/philo/models/nodes.py?ds=sidebyside diff --git a/philo/models/nodes.py b/philo/models/nodes.py index 58d1b96..647ba81 100644 --- a/philo/models/nodes.py +++ b/philo/models/nodes.py @@ -55,7 +55,7 @@ class Node(SlugTreeEntity): """This is a shortcut method for :meth:`View.render_to_response`""" if self.view_object_id and self.view_content_type_id: view_model = ContentType.objects.get_for_id(self.view_content_type_id).model_class() - self.view = view_model._default_manager.select_related(depth=1).get(pk=self.view_object_id) + self.view = view_model._default_manager.get(pk=self.view_object_id) return self.view.render_to_response(request, extra_context) raise Http404