Merge branch 'hotfix/embed_widget' of git://github.com/lapilofu/philo into develop
[philo.git] / philo / models / nodes.py
index 58d1b96..604e958 100644 (file)
@@ -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()
                """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
        
                        return self.view.render_to_response(request, extra_context)
                raise Http404
        
@@ -424,4 +424,5 @@ class File(View):
                return self.name
 
 
                return self.name
 
 
-register_value_model(Node)
\ No newline at end of file
+register_value_model(Node)
+register_value_model(File)
\ No newline at end of file