self.multiple_paginations = multiple_paginations
def render(self, context):
- if self.multiple_paginations or "paginator" in context:
+ if self.multiple_paginations or getattr(context, "paginator", None):
page_suffix = '_%s' % self.queryset_var
else:
page_suffix = ''
to_return['getvars'] = ''
return to_return
except (KeyError, AttributeError):
- return {}
+ to_return = {}
+
+ context.update(to_return)
+
+ return context
register = Library()