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"