From f5f92aa6333f9eb2c9ce20bcdce41818f85d4f5c Mon Sep 17 00:00:00 2001 From: AtmegaBuzz Date: Thu, 8 Sep 2022 10:12:37 +0530 Subject: [PATCH] user.username returns none handled by hdefault_if_none --- website/templates/issue.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/templates/issue.html b/website/templates/issue.html index 60233481ef..d141078072 100644 --- a/website/templates/issue.html +++ b/website/templates/issue.html @@ -223,7 +223,7 @@

Total # of issues reported = {{ issue_count }}

{% endif %}
-

Reported by {{ object.user.username|default:"Anonymous" }}

+

Reported by {{ object.user.username|default_if_none:"Anonymous" }}

{% if object.user.username %}

Total Points of {{ object.user.username }} = {{ users_score }}