From 44f4f971019a43a9da4f465851f4c6c82d396191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Mon, 13 Aug 2018 18:56:48 +0200 Subject: [PATCH] Add success url to rideshare delete. --- src/rideshare/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rideshare/views.py b/src/rideshare/views.py index 94305103..568baa8a 100644 --- a/src/rideshare/views.py +++ b/src/rideshare/views.py @@ -85,3 +85,4 @@ class RideUpdate(LoginRequiredMixin, CampViewMixin, IsRideOwnerMixin, UpdateView class RideDelete(LoginRequiredMixin, CampViewMixin, IsRideOwnerMixin, DeleteView): model = Ride + success_url = reverse('rideshare:list')