Use url names in redirects

This commit is contained in:
Mouse Reeve
2021-09-27 10:17:16 -07:00
parent 92de48afd4
commit 28d40e9914
6 changed files with 11 additions and 9 deletions

View File

@ -29,4 +29,4 @@ class Notifications(View):
def post(self, request):
"""permanently delete notification for user"""
request.user.notification_set.filter(read=True).delete()
return redirect("/notifications")
return redirect("notifications")