Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added a couple more missed places for use of DEFAULT_HTTP_PROTOCOL

  • Loading branch information...
commit 6b02bb2c4d3c2c6e13dcccda4b08cc7ca9d435d1 1 parent 087d2a6
Brian Rosner brosner authored

Showing 1 changed file with 9 additions and 5 deletions. Show diff stats Hide diff stats

  1. +9 5 notification/feeds.py
14 notification/feeds.py
@@ -15,7 +15,9 @@
15 15
16 16 class BaseNoticeFeed(Feed):
17 17 def item_id(self, notification):
18   - return "http://%s%s" % (
  18 + protocol = getattr(settings, "DEFAULT_HTTP_PROTOCOL", "http")
  19 + return "%s://%s%s" % (
  20 + protocol,
19 21 Site.objects.get_current().domain,
20 22 notification.get_absolute_url(),
21 23 )
@@ -43,10 +45,12 @@ def get_object(self, params):
43 45 return get_object_or_404(User, username=params[0].lower())
44 46
45 47 def feed_id(self, user):
46   - return "http://%s%s" % (
47   - Site.objects.get_current().domain,
48   - reverse('notification_feed_for_user'),
49   - )
  48 + protocol = getattr(settings, "DEFAULT_HTTP_PROTOCOL", "http")
  49 + return "%s://%s%s" % (
  50 + protocol,
  51 + Site.objects.get_current().domain,
  52 + reverse('notification_feed_for_user'),
  53 + )
50 54
51 55 def feed_title(self, user):
52 56 return _('Notices Feed')

0 comments on commit 6b02bb2

Please sign in to comment.
Something went wrong with that request. Please try again.