Mercurial > public > sg101
diff smiley/models.py @ 989:2908859c2fe4
Smilies now use relative links.
This is for upcoming switch to SSL. Currently we do not need absolute URLs for
smilies. If this changes we can add it later.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 29 Oct 2015 20:54:34 -0500 |
parents | e14f54f16dbc |
children | 4aadaf3bc234 |
line wrap: on
line diff
--- a/smiley/models.py Thu Oct 29 20:15:52 2015 -0500 +++ b/smiley/models.py Thu Oct 29 20:54:34 2015 -0500 @@ -81,9 +81,8 @@ def html(self): """Returns a HTML img tag representation of the smiley.""" if self.image: - site = Site.objects.get_current() - return (u'<img src="http://%s%s" alt="%s" title="%s" />' % - (site.domain, self.get_absolute_url(), self.title, self.title)) + return (u'<img src="%s" alt="%s" title="%s" />' % + (self.get_absolute_url(), self.title, self.title)) return u'' html.allow_tags = True