User menu, css cleanups
This commit is contained in:
1 parent
9641b66346
commit
d8a750151b
9 files changed
+3279
-2830
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user