diff options
author | luxagraf <sng@luxagraf> | 2021-03-23 13:41:16 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf> | 2021-03-23 13:41:16 -0400 |
commit | bdb0838afc608997d4f1eab8064ee83fbf57cc20 (patch) | |
tree | 39e0110824ed3490bea2765ae47991d1b40f31df /app | |
parent | 2da4fd3d7c8ee7cfd08edac734520713597458a0 (diff) |
fixed a bug in lttr redirect
Diffstat (limited to 'app')
-rw-r--r-- | app/lttr/views.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/lttr/views.py b/app/lttr/views.py index f5cd28a..43a75b2 100644 --- a/app/lttr/views.py +++ b/app/lttr/views.py @@ -100,7 +100,10 @@ class NewsletterSubscribeView(CreateView): return kwargs def get_success_url(self): - return reverse_lazy('lttr:subscribed') + if self.slug == 'src': + return reverse_lazy('src:subscribed') + else: + return reverse_lazy('lttr:subscribed') def form_valid(self, form, **kwargs): form.instance.user, created = get_user_model().objects.get_or_create( |