def get_field_names(elems):
    """ Return unique name attributes """
    res = []
    seen = set()
    for el in elems:
        if not getattr(el, 'name', None) or el.name in seen:
            continue
        seen.add(el.name)
        res.append(el.name)
    return res
