From 776712e1288138f546d105ab621523a2c632638a Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 15 Jan 2021 16:36:00 -0500 Subject: proj: updated several views to use utils.LuxDetailView This allows for a single breadcrumbs template, consolidating code --- app/posts/views/src_views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/posts/views/src_views.py') 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" -- cgit v1.2.3-70-g09d2