summaryrefslogtreecommitdiff
path: root/app/tutorials/views.py
blob: ab51ef2db8c422c7b6f4d0721e61e4bc2437649d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from django.views.generic import ListView
from django.views.generic.detail import DetailView


from .models import Tutorial


class TutorialListView(ListView):
    model = Tutorial

    def get_queryset(self):
        return Tutorial.objects.all()


class EntryDetailView(DetailView):
    model = Tutorial
    slug_field = "slug"


class EntryDetailViewTXT(EntryDetailView):
    template_name = "blog/entry_detail.txt"