Woops, need to use lazy.

This commit is contained in:
Víðir Valberg Guðmundsson 2018-08-13 18:59:49 +02:00
parent 44f4f97101
commit 231f1e54fa

View file

@ -1,13 +1,12 @@
from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
from django.urls import reverse
from django.urls import reverse, reverse_lazy
from django.views.generic import (
ListView,
DetailView,
CreateView,
UpdateView,
DeleteView,
FormView
)
from django.http import HttpResponseRedirect
from django import forms
@ -85,4 +84,4 @@ class RideUpdate(LoginRequiredMixin, CampViewMixin, IsRideOwnerMixin, UpdateView
class RideDelete(LoginRequiredMixin, CampViewMixin, IsRideOwnerMixin, DeleteView):
model = Ride
success_url = reverse('rideshare:list')
success_url = reverse_lazy('rideshare:list')