feat: Show all notifications on profile
This commit is contained in:
parent
1dd53a87e9
commit
d46ab8da6b
@ -423,7 +423,7 @@ def report_detail_success(request, report_id):
|
|||||||
def user_detail(request, user, token=None):
|
def user_detail(request, user, token=None):
|
||||||
context = {"user": user,
|
context = {"user": user,
|
||||||
"adoption_notices": AdoptionNotice.objects.filter(owner=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:
|
if token is not None:
|
||||||
context["token"] = token
|
context["token"] = token
|
||||||
return render(request, 'fellchensammlung/details/detail-user.html', context=context)
|
return render(request, 'fellchensammlung/details/detail-user.html', context=context)
|
||||||
|
Loading…
Reference in New Issue
Block a user