Skip to content
Browse files

Fixed #5107: swapped in RequestContext for Context in syndication fee…

…ds. Thanks,

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 4457ba0 commit bb2e395af77661de650fa8d6d7cd593768c94e30 @jacobian jacobian committed
Showing with 4 additions and 3 deletions.
  1. +4 −3 django/contrib/syndication/
7 django/contrib/syndication/
@@ -3,7 +3,8 @@
from django.contrib.sites.models import Site, RequestSite
from django.utils import feedgenerator
from django.utils.encoding import smart_unicode, iri_to_uri
-from django.conf import settings
+from django.conf import settings
+from django.template import RequestContext
def add_domain(domain, url):
if not (url.startswith('http://') or url.startswith('https://')):
@@ -124,9 +125,9 @@ def get_feed(self, url=None):
author_email = author_link = None
- title = title_tmp.render(Context({'obj': item, 'site': current_site})),
+ title = title_tmp.render(RequestContext(self.request, {'obj': item, 'site': current_site})),
link = link,
- description = description_tmp.render(Context({'obj': item, 'site': current_site})),
+ description = description_tmp.render(RequestContext(self.request, {'obj': item, 'site': current_site})),
unique_id = self.__get_dynamic_attr('item_guid', item, link),
enclosure = enc,
pubdate = self.__get_dynamic_attr('item_pubdate', item),

0 comments on commit bb2e395

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