

def render(self, context):
    kwargs = parse(self.queryset)
    pargs = parse(self.params)
    for i in kwargs:
        if (kwargs[i] == 'False'):
            kwargs[i] = False
        elif (kwargs[i] == 'True'):
            kwargs[i] = True
        else:
            kwargs[i] = resolve_variable(kwargs[i], context)
    kwargs = dict([(str(x), kwargs[x]) for x in kwargs.keys()])
    new_queryset = self.object.objects.filter(**kwargs)
    if ('order_by' in pargs):
        new_queryset = new_queryset.order_by(pargs['order_by'])
    if ('limit' in pargs):
        l = pargs['limit']
        i = l.split(':')[0]
        if i:
            i = int(i)
        else:
            i = 0
        j = l.split(':')[1]
        if j:
            j = int(j)
        else:
            j = 0
        new_queryset = new_queryset[i:j]
    if ('template' in pargs):
        template_name = pargs['template']
    else:
        model = new_queryset.model
        template_name = ('%s/%s_list.html' % (model._meta.app_label, model._meta.object_name.lower()))
    context['object_list'] = j
    context['today'] = datetime.date.today()
    return template.loader.get_template(template_name).render(context)

dataset/ETHPy150Open kiberpipa/Intranet/intranet/org/templatetags/box.py BoxListNode.render/VarMisuse@312/386 `new_queryset`->`j`