Adding support for multiple simultaneous Ext.Direct calls packed into an array.
[philo.git] / views.py
index c03f687..911adfe 100644 (file)
--- a/views.py
+++ b/views.py
@@ -1,7 +1,7 @@
 from django.http import Http404, HttpResponse
 from django.template import RequestContext
 from django.contrib.sites.models import Site
-from models import Node
+from philo.models import Node
 
 
 def node_view(request, path=None, **kwargs):
@@ -17,6 +17,6 @@ def node_view(request, path=None, **kwargs):
                raise Http404
        if not node:
                raise Http404
-       if subpath and not node.instance.accepts_subpath:
+       if subpath and not node.accepts_subpath:
                raise Http404
-       return node.instance.render_to_response(request, path=path, subpath=subpath)
+       return node.render_to_response(request, path=path, subpath=subpath)