diff options
Diffstat (limited to 'app/pages')
-rw-r--r-- | app/pages/build.py | 1 | ||||
-rw-r--r-- | app/pages/views.py | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/app/pages/build.py b/app/pages/build.py index a0186a7..89e939f 100644 --- a/app/pages/build.py +++ b/app/pages/build.py @@ -10,7 +10,6 @@ class BuildPages(BuildNew): def build(self): self.build_detail_view() - print("building pages") def get_model_queryset(self): return self.model.objects.filter(build=True,site=self.site) diff --git a/app/pages/views.py b/app/pages/views.py index 1356729..49ff574 100644 --- a/app/pages/views.py +++ b/app/pages/views.py @@ -11,8 +11,7 @@ class PageDetailView(LuxDetailView): def get_template_names(self): obj = self.get_object() - return ["pages/%s/%s.html" % (obj.site.display_name, obj.slug), \ - 'pages/%spage_detail.html'% obj.site.display_name] + return ["pages/%s/%s.html" % (obj.site.name, obj.slug), 'pages/%spage_detail.html'% obj.site.name] class PageDetailTXTView(LuxDetailView): |