fix visualisation removal success url (#21045)
This commit is contained in:
parent
2b8c08bf07
commit
bfdfb3e517
|
@ -22,7 +22,7 @@ from django.views.generic.edit import CreateView, DeleteView, UpdateView
|
|||
from django.views.generic.list import MultipleObjectMixin
|
||||
from django.views.generic import DetailView, ListView, View, TemplateView
|
||||
from django.shortcuts import redirect
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.core.urlresolvers import reverse, reverse_lazy
|
||||
from django.http import HttpResponse, Http404
|
||||
from django.core.exceptions import PermissionDenied
|
||||
from django.views.decorators.clickjacking import xframe_options_exempt
|
||||
|
@ -187,7 +187,7 @@ class VisualizationIframeView(SignatureAuthorizationMixin, VisualizationView):
|
|||
class DeleteVisualizationView(views.AuthorizationMixin, DeleteView):
|
||||
model = models.Visualization
|
||||
template_name = 'bijoe/delete_visualization.html'
|
||||
success_url = 'homepage'
|
||||
success_url = reverse_lazy('homepage')
|
||||
|
||||
|
||||
class VisualizationsView(views.AuthorizationMixin, ListView):
|
||||
|
|
Loading…
Reference in New Issue