Redirect the success url of 1rm add to list of 1rm

This commit is contained in:
Gabriel Augendre 2018-04-03 11:32:42 +02:00
parent b90c64cf5d
commit 8659460df0
No known key found for this signature in database
GPG key ID: F360212F958357D4

View file

@ -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):