Commit ebdf3b7e by Kálmán Viktor

dashboard: fix disk remove missing method

parent 80695e1f
......@@ -337,6 +337,9 @@ class DiskRemoveView(DeleteViewBase):
template.remove_disk(disk)
disk.destroy()
def get_success_url(self):
return self.request.POST.get("next") or "/"
class LeaseCreate(LoginRequiredMixin, PermissionRequiredMixin,
SuccessMessageMixin, CreateView):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment