

def render(self, context):
    if (self.page_number_variable is None):
        default_number = self.page_number
    else:
        default_number = int(self.page_number_variable.resolve(context))
    if (self.querystring_key_variable is None):
        querystring_key = self.querystring_key
    else:
        querystring_key = self.querystring_key_variable.resolve(context)
    page_number = utils.get_page_number_from_request(context['request'], querystring_key, default=default_number)
    if (self.var_name is None):
        return utils.text(page_number)
    context[self.var_name] = page_number
    return ''

dataset/ETHPy150Open frankban/django-endless-pagination/endless_pagination/templatetags/endless.py ShowCurrentNumberNode.render/original