Skip to content
Snippets Groups Projects
Commit 8b268910 authored by Julian's avatar Julian
Browse files

Add DashboardWidgets to context

parent 2efc825d
No related branches found
No related tags found
1 merge request!142Implement core functionality for dashboard widgets
......@@ -16,7 +16,7 @@ from .forms import (
EditTermForm,
PersonsAccountsFormSet,
)
from .models import Activity, Group, Notification, Person, School
from .models import Activity, Group, Notification, Person, School, DashboardWidget
from .tables import GroupsTable, PersonsTable
from .util import messages
......@@ -33,6 +33,8 @@ def index(request: HttpRequest) -> HttpResponse:
context["notifications"] = notifications
context["unread_notifications"] = unread_notifications
context["widgets"] = DashboardWidget.objects.filter(active=True)
return render(request, "core/index.html", context)
......
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