@register.inclusion_tag('org/box_scratchpad.html')
def box_scratchpad(user):
    try:
        scratchpad = Scratchpad.objects.latest('id')
    except __HOLE__:
        scratchpad = []

    return {'object': scratchpad}
dataset/ETHPy150Open kiberpipa/Intranet/intranet/org/templatetags/box.py/box_scratchpad