@register.filter
def flatten(records, fld):
    return [path for fields in records.values_list(fld) for path in fields] if records else []
Returns a dictionary based on a user object.
dataset/ETHPy150Open Wtower/django-ninecms/ninecms/templatetags/ninecms_extras.py/flatten--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/webapp2-2.3/webapp2_extras/auth.py/AuthStore.user_to_dict