Przeglądaj źródła

Force RSS URLs to http rather than https.

Andrew Klopper 8 lat temu
rodzic
commit
a667636662
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      feed_content/viewsets.py

+ 1 - 1
feed_content/viewsets.py

@@ -28,7 +28,7 @@ class FeedCategoryTable(BaseTable):
28 28
         order_by = ('name',)
29 29
 
30 30
     def render_rss_url(self, value, bound_column):
31
-        rss_url = bound_column._table.view.request.build_absolute_uri(reverse('rss:daily', kwargs={'feed_category_id': value}))
31
+        rss_url = bound_column._table.view.request.build_absolute_uri(reverse('rss:daily', kwargs={'feed_category_id': value})).replace('https://', 'http://')
32 32
         return mark_safe('<a href="{0}">{0}</a>'.format(rss_url))
33 33
 
34 34
 class FeedCategoryForm(forms.ModelForm):