diff --git a/events/models/profiles.py b/events/models/profiles.py index 993095d..ec66d89 100644 --- a/events/models/profiles.py +++ b/events/models/profiles.py @@ -45,10 +45,10 @@ class UserProfile(models.Model): return "Unknown Profile" def avatar_url(self): - if self.avatar.url.startswith('http'): - return self.avatar.url + if self.avatar.name.startswith('http'): + return self.avatar.name else: - return settings.MEDIA_URL + '/' + self.avatar.url + return self.avatar.url def get_timezone(self): try: diff --git a/get_together/templates/get_together/base.html b/get_together/templates/get_together/base.html index fd9a889..dc3351b 100644 --- a/get_together/templates/get_together/base.html +++ b/get_together/templates/get_together/base.html @@ -72,7 +72,7 @@ form { {% if request.user.is_authenticated %}