diff options
author | luxagraf <sng@luxagraf> | 2021-03-23 16:20:12 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf> | 2021-03-23 16:20:12 -0400 |
commit | 30869b14bcd9186f6bc359ea4e55a64e326f1496 (patch) | |
tree | 567981f6dc094eea73cb9ed4cf830a05d0624d78 /app/lttr/views.py | |
parent | bdb0838afc608997d4f1eab8064ee83fbf57cc20 (diff) |
lttr: fixed subscribe link
Diffstat (limited to 'app/lttr/views.py')
-rw-r--r-- | app/lttr/views.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/lttr/views.py b/app/lttr/views.py index 43a75b2..6a9cfd8 100644 --- a/app/lttr/views.py +++ b/app/lttr/views.py @@ -100,10 +100,7 @@ class NewsletterSubscribeView(CreateView): return kwargs def get_success_url(self): - if self.slug == 'src': - return reverse_lazy('src:subscribed') - else: - return reverse_lazy('lttr:subscribed') + return reverse_lazy('lttr:subscribed', kwargs={'slug':self.slug}) def form_valid(self, form, **kwargs): form.instance.user, created = get_user_model().objects.get_or_create( |