From 7fd5865d3ae0e5a41c17269816a9aebbc569800e Mon Sep 17 00:00:00 2001 From: gzbender Date: Mon, 16 Jul 2018 19:04:22 +0500 Subject: [PATCH] Fix LIL-559 --- project/templates/lilcity/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/templates/lilcity/index.html b/project/templates/lilcity/index.html index 187cd913..6e94527f 100644 --- a/project/templates/lilcity/index.html +++ b/project/templates/lilcity/index.html @@ -137,7 +137,7 @@ defaultUserPhoto: "{% static 'img/user_default.jpg' %}", user: { id: '{{ request.user.id }}', - photo: '{{ request.user.photo.url }}', + photo: '{% if request.user.photo %}{{ request.user.photo.url }}{% else %}{% static 'img/user_default.jpg' %}{% endif %}', } };