Browse files

added a couple more missed places for use of DEFAULT_HTTP_PROTOCOL

  • Loading branch information...
1 parent 087d2a6 commit 6b02bb2c4d3c2c6e13dcccda4b08cc7ca9d435d1 @brosner brosner committed Oct 21, 2009
Showing with 9 additions and 5 deletions.
  1. +9 −5 notification/feeds.py
View
14 notification/feeds.py
@@ -15,7 +15,9 @@
class BaseNoticeFeed(Feed):
def item_id(self, notification):
- return "http://%s%s" % (
+ protocol = getattr(settings, "DEFAULT_HTTP_PROTOCOL", "http")
+ return "%s://%s%s" % (
+ protocol,
Site.objects.get_current().domain,
notification.get_absolute_url(),
)
@@ -43,10 +45,12 @@ def get_object(self, params):
return get_object_or_404(User, username=params[0].lower())
def feed_id(self, user):
- return "http://%s%s" % (
- Site.objects.get_current().domain,
- reverse('notification_feed_for_user'),
- )
+ protocol = getattr(settings, "DEFAULT_HTTP_PROTOCOL", "http")
+ return "%s://%s%s" % (
+ protocol,
+ Site.objects.get_current().domain,
+ reverse('notification_feed_for_user'),
+ )
def feed_title(self, user):
return _('Notices Feed')

0 comments on commit 6b02bb2

Please sign in to comment.