@register.filter(name='getattr')
def get_attribute(obj, arg):
    return getattr(obj, arg, None)
A little helper method for bulk_insert to insert the bulk one batch
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/hqwebapp/templatetags/hq_shared_tags.py/get_attribute--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/db/models/query.py/QuerySet._batched_insert