Skip to content
Snippets Groups Projects
Verified Commit dcce007c authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Rename view for notifications to NotificationsListView

parent 83abbb5f
No related branches found
No related tags found
1 merge request!447Resolve "Add own menu entry for notifications"
Pipeline #5498 passed
......@@ -57,7 +57,7 @@ urlpatterns = [
path("group/<int:id_>/edit", views.edit_group, name="edit_group_by_id"),
path("group/<int:id_>/delete", views.delete_group, name="delete_group_by_id"),
path("", views.index, name="index"),
path("notifications/", views.Notifications.as_view(), name="notifications"),
path("notifications/", views.NotificationsListView.as_view(), name="notifications"),
path("dashboard/edit/", views.EditDashboardView.as_view(), name="edit_dashboard"),
path(
"notifications/mark-read/<int:id_>",
......
......@@ -109,7 +109,7 @@ def index(request: HttpRequest) -> HttpResponse:
return render(request, "core/index.html", context)
class Notifications(PermissionRequiredMixin, ListView):
class NotificationsListView(PermissionRequiredMixin, ListView):
permission_required = "core.view_notifications"
template_name = "core/notifications.html"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment