User menu, css cleanups

This commit is contained in:
nikolark committed 2014-10-06 20:01:52 +02:00
1 parent 9641b66346
commit d8a750151b
9 files changed
+3279 -2830

No files matched your search

+7
View File
@@ -128,6 +128,13 @@ class UserProfile(models.Model):
else:
return datetime.min
def profile_image_url(self):
from django.templatetags.static import static
if self.image:
return static('img/unknown_person.png')
return self.image
def __unicode__(self):
return u"{0}".format(self.user)