From 9a620cf42bf1fe6977e378bd834b41ff4a593dde Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 28 Jul 2023 13:39:02 -0500 Subject: main: removed some apps I wasn't using and added bak to git to preserve a copy of old apps --- bak/unused_apps/publications/views.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 bak/unused_apps/publications/views.py (limited to 'bak/unused_apps/publications/views.py') diff --git a/bak/unused_apps/publications/views.py b/bak/unused_apps/publications/views.py new file mode 100644 index 0000000..0398dcb --- /dev/null +++ b/bak/unused_apps/publications/views.py @@ -0,0 +1,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" -- cgit v1.2.3-70-g09d2