summaryrefslogtreecommitdiff
path: root/app/lttr/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/lttr/views.py')
-rw-r--r--app/lttr/views.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/lttr/views.py b/app/lttr/views.py
index 6df3fdc..58bfb65 100644
--- a/app/lttr/views.py
+++ b/app/lttr/views.py
@@ -50,6 +50,7 @@ class NewsletterListView(ListView):
queryset = super(NewsletterListView, self).get_queryset()
return queryset.filter(newsletter__slug=self.kwargs['slug'])
+
class NewsletterOptionsView(ListView):
model = Newsletter
@@ -64,6 +65,11 @@ class ConfirmSubscriptionView(DetailView):
obj.update('subscribe')
return obj
+ def get_context_data(self, **kwargs):
+ context = super(ConfirmSubscriptionView, self).get_context_data(**kwargs)
+ context['newsletter'] = self.kwargs['slug']
+ return context
+
class NewsletterSubscribeView(CreateView):
"""