from django import template
register = template.Library()


@register.simple_tag(takes_context=True)
def show_all_attrs(context, value):
    res = []
    for k in dir(value):
        print(k)
        res.append('%r %r\n' % (k, getattr(value, k)))
    return '\n'.join(res)

6442e49a1a54f4de03506fcc417395a5615fb7eb
<mask token>

<mask token>


@register.simple_tag(takes_context=True)
def show_all_attrs(context, value):
    res = []
    for k in dir(value):
        print(k)
        res.append('%r %r\n' % (k, getattr(value, k)))
    return '\n'.join(res)

<mask token>
register = template.Library()


@register.simple_tag(takes_context=True)
def show_all_attrs(context, value):
    res = []
    for k in dir(value):
        print(k)
        res.append('%r %r\n' % (k, getattr(value, k)))
    return '\n'.join(res)

from django import template
register = template.Library()


@register.simple_tag(takes_context=True)
def show_all_attrs(context, value):
    res = []
    for k in dir(value):
        print(k)
        res.append('%r %r\n' % (k, getattr(value, k)))
    return '\n'.join(res)
