mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 11:01:12 +00:00
Merge pull request #2938 from jderuiter/redirect-referer
On readthrough, progressupdate or status delete return to previous page
This commit is contained in:
commit
b7e7867b9b
1 changed files with 2 additions and 2 deletions
|
@ -203,7 +203,7 @@ def delete_readthrough(request):
|
|||
readthrough.raise_not_deletable(request.user)
|
||||
|
||||
readthrough.delete()
|
||||
return redirect("/")
|
||||
return redirect_to_referer(request)
|
||||
|
||||
|
||||
@login_required
|
||||
|
@ -214,4 +214,4 @@ def delete_progressupdate(request):
|
|||
update.raise_not_deletable(request.user)
|
||||
|
||||
update.delete()
|
||||
return redirect("/")
|
||||
return redirect_to_referer(request)
|
||||
|
|
Loading…
Reference in a new issue