summaryrefslogtreecommitdiff
path: root/app/pages/views.py
blob: bef652979694ce3f27e0f091989f2988206902df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from utils.views import LuxDetailView

from .models import Page


class PageDetailView(LuxDetailView):
    model = Page

    def get_template_names(self):
        obj = self.get_object()
        return ["pages/%s.html" % obj.slug, 'pages/page_detail.html']

class PageDetailTXTView(LuxDetailView):
    model = Page
    slug_field = "slug"