Oops
This commit is contained in:
1 parent
d8a750151b
commit
a2e7c595c1
1 file changed
+1
-1
+1
-1
@@ -130,7 +130,7 @@ class UserProfile(models.Model):
|
|||||||
|
|
||||||
def profile_image_url(self):
|
def profile_image_url(self):
|
||||||
from django.templatetags.static import static
|
from django.templatetags.static import static
|
||||||
if self.image:
|
if not self.image:
|
||||||
return static('img/unknown_person.png')
|
return static('img/unknown_person.png')
|
||||||
|
|
||||||
return self.image
|
return self.image
|
||||||
|
|||||||
Reference in new issue
Block a user