summaryrefslogtreecommitdiff
path: root/app/unused_apps/publications/views.py
blob: 0398dcb93ed94204795faf707b9deb49af75a526 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from django.views.generic.detail import DetailView

from utils.views import PaginatedListView

from .models import Publication


class PubListView(PaginatedListView):
    """
    Return a list of Publications
    """
    queryset = Publication.objects.all()


class PubDetailView(DetailView):
    """
    Return a detail view of Publication
    """
    model = Publication
    slug_field = "slug"