summaryrefslogtreecommitdiff
path: root/app/pages/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/pages/views.py')
-rw-r--r--app/pages/views.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/app/pages/views.py b/app/pages/views.py
index 8431bc2..bef6529 100644
--- a/app/pages/views.py
+++ b/app/pages/views.py
@@ -1,12 +1,15 @@
-from django.views.generic.detail import DetailView
+from utils.views import LuxDetailView
from .models import Page
-class PageDetailView(DetailView):
+class PageDetailView(LuxDetailView):
model = Page
- slug_field = "slug"
def get_template_names(self):
obj = self.get_object()
- return ["details/%s.html" % obj.slug, 'details/page.html']
+ return ["pages/%s.html" % obj.slug, 'pages/page_detail.html']
+
+class PageDetailTXTView(LuxDetailView):
+ model = Page
+ slug_field = "slug"