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/lttr/views.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/lttr') diff --git a/app/lttr/views.py b/app/lttr/views.py index 58bfb65..6b8c60a 100644 --- a/app/lttr/views.py +++ b/app/lttr/views.py @@ -50,6 +50,10 @@ class NewsletterListView(ListView): queryset = super(NewsletterListView, self).get_queryset() return queryset.filter(newsletter__slug=self.kwargs['slug']) + def get_context_data(self, **kwargs): + context = super(NewsletterListView, self).get_context_data(**kwargs) + context['breadcrumbs'] = [self.kwargs['slug'],] + return context class NewsletterOptionsView(ListView): model = Newsletter -- cgit v1.2.3-70-g09d2