From 8659460df0d65df957baec14438857cb9d826951 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 3 Apr 2018 11:32:42 +0200 Subject: [PATCH] Redirect the success url of 1rm add to list of 1rm --- gym/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gym/views.py b/gym/views.py index 0b7b27b..3ac2413 100644 --- a/gym/views.py +++ b/gym/views.py @@ -274,7 +274,7 @@ class TheoreticalMaxCreateView(LoginRequiredMixin, QuickActionsMixin, generic.Cr return initial def get_success_url(self): - return reverse('equipment-detail', kwargs={'pk': self.object.equipment.pk}) + return reverse('theoretical-max-list', kwargs={'pk': self.object.equipment.pk}) class TheoreticalMaxListView(LoginRequiredMixin, QuickActionsMixin, generic.ListView):