Немного перлокода (ж

1
2
3
4
5
def render(self, context):
context.push()
queryset = Entry.objects.filter(visible = True, group = self.group.resolve(context))
context['object_list'] = queryset[:self.limit]
return (template.loader.render_to_string(self.template.resolve(context), context), context.pop())[0]