Code

Ticket #5107: j1.diff

File j1.diff, 584 bytes (added by peter@…, 7 years ago)

adjust feed to use RequestContext for Title and Description Template Render

Line 
16c6,7
2< from django.conf import settings
3---
4> from django.conf import settings         
5> from django.template import RequestContext
6120c121
7<                 title = title_tmp.render(Context({'obj': item, 'site': current_site})),
8---
9>                 title = title_tmp.render(RequestContext(self.request, {'obj': item, 'site': current_site})),
10122c123
11<                 description = description_tmp.render(Context({'obj': item, 'site': current_site})),
12---
13>                 description = description_tmp.render(RequestContext(self.request, {'obj': item, 'site': current_site})),