Use url names in redirects
This commit is contained in:
parent
92de48afd4
commit
28d40e9914
6 changed files with 11 additions and 9 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue