diff options
Diffstat (limited to 'app/resume/views.py')
-rw-r--r-- | app/resume/views.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/resume/views.py b/app/resume/views.py index 563ceaf..7e5de14 100644 --- a/app/resume/views.py +++ b/app/resume/views.py @@ -29,6 +29,9 @@ class PageView(DetailView): model = Page slug_field = "slug" + def get_queryset(self): + return Page.objects.filter(path__startswith=self.kwargs['slug']) + def get_template_names(self): return ["details/%s.html" % self.object.slug, 'details/page.html'] |