def get_inline_attr(inline):
    prefix = 'data-inline-' if (inline.name != 'inline') else ''
    for attr in INLINE_ATTRS:
        attr_val = inline.get(prefix + attr, None)
        if attr_val:
            return { attr: attr_val }
    if settings.DEBUG:
        raise ValueError, "Inline %s does not have any of the appropriate attributes: %s" % (inline, INLINE_ATTRS)
    return None
Tries all the attributes in INLINES_ATTRS in order, returning the first
dataset/ETHPy150Open issackelly/django-improved-inlines/improved_inlines/parser.py/get_inline_attr