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 %}',
}
};