Skip to content
Snippets Groups Projects
Commit deec0fe5 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Apply suggestion to aleksis/core/views.py

parent b8617090
No related branches found
No related tags found
1 merge request!100Resolve "Dashboard"
Pipeline #559 failed
...@@ -27,7 +27,7 @@ def index(request: HttpRequest) -> HttpResponse: ...@@ -27,7 +27,7 @@ def index(request: HttpRequest) -> HttpResponse:
user = request.user user = request.user
if user.is_authenticated: if user.is_authenticated:
activities = Activity.objects.filter(user=request.user.person).order_by("-created_at")[:5] activities = request.user.person.activities.all()[:5]
notifications = ( notifications = (
request.user.person.notifications.all().filter(user=request.user.person).order_by("-created_at")[:5] request.user.person.notifications.all().filter(user=request.user.person).order_by("-created_at")[:5]
......
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