summaryrefslogtreecommitdiff
path: root/app/posts/views/src_views.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf>2021-01-15 16:36:00 -0500
committerluxagraf <sng@luxagraf>2021-01-15 16:36:00 -0500
commit776712e1288138f546d105ab621523a2c632638a (patch)
tree8215fb8e6d024f6f1b1b92bf962334ea61753fd0 /app/posts/views/src_views.py
parent47b79fd9d4329e73cef7929ed8f64d9eeb287ae5 (diff)
proj: updated several views to use utils.LuxDetailView
This allows for a single breadcrumbs template, consolidating code
Diffstat (limited to 'app/posts/views/src_views.py')
-rw-r--r--app/posts/views/src_views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/posts/views/src_views.py b/app/posts/views/src_views.py
index 90c672c..c56b723 100644
--- a/app/posts/views/src_views.py
+++ b/app/posts/views/src_views.py
@@ -6,7 +6,7 @@ from django.urls import reverse
from django.conf import settings
#from paypal.standard.forms import PayPalPaymentsForm
-from utils.views import PaginatedListView
+from utils.views import PaginatedListView, LuxDetailView
from ..models import Post, PostType
from taxonomy.models import Category
@@ -27,7 +27,7 @@ class SrcListView(PaginatedListView):
return context
-class SrcDetailView(DetailView):
+class SrcDetailView(LuxDetailView):
model = Post
slug_field = "slug"
template_name="posts/src_detail.html"