feat: Show all notifications on profile

This commit is contained in:
moanos [he/him] 2024-11-20 23:03:02 +01:00
parent 1dd53a87e9
commit d46ab8da6b

View File

@ -423,7 +423,7 @@ def report_detail_success(request, report_id):
def user_detail(request, user, token=None):
context = {"user": user,
"adoption_notices": AdoptionNotice.objects.filter(owner=user),
"notifications": CommentNotification.objects.filter(user=user, read=False)}
"notifications": BaseNotification.objects.filter(user=user, read=False)}
if token is not None:
context["token"] = token
return render(request, 'fellchensammlung/details/detail-user.html', context=context)