diff options
author | luxagraf <sng@luxagraf> | 2021-01-15 16:36:00 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf> | 2021-01-15 16:36:00 -0500 |
commit | 776712e1288138f546d105ab621523a2c632638a (patch) | |
tree | 8215fb8e6d024f6f1b1b92bf962334ea61753fd0 /app/lttr/views.py | |
parent | 47b79fd9d4329e73cef7929ed8f64d9eeb287ae5 (diff) |
proj: updated several views to use utils.LuxDetailView
This allows for a single breadcrumbs template, consolidating code
Diffstat (limited to 'app/lttr/views.py')
-rw-r--r-- | app/lttr/views.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |