Revert change to redirect when deleting status

This commit is contained in:
Joeri de Ruiter 2023-08-03 13:18:35 +02:00
parent d1bad521e9
commit 2dddb2e3da

View file

@ -8,7 +8,7 @@ from django.core.validators import URLValidator
from django.core.exceptions import ValidationError from django.core.exceptions import ValidationError
from django.db.models import Q from django.db.models import Q
from django.http import HttpResponse, HttpResponseBadRequest, Http404 from django.http import HttpResponse, HttpResponseBadRequest, Http404
from django.shortcuts import get_object_or_404 from django.shortcuts import get_object_or_404, redirect
from django.template.response import TemplateResponse from django.template.response import TemplateResponse
from django.utils import timezone from django.utils import timezone
from django.utils.decorators import method_decorator from django.utils.decorators import method_decorator
@ -176,7 +176,7 @@ class DeleteStatus(View):
# perform deletion # perform deletion
status.delete() status.delete()
return redirect_to_referer(request) return redirect("/")
@login_required @login_required