'Check one inline model admin.'

def _check_inlines_item(self, obj, model, inline, label):

    inline_label = ((inline.__module__ + '.') + inline.__name__)
    from django.contrib.admin.options import InlineModelAdmin
    if (not issubclass(inline, InlineModelAdmin)):
        return [checks.Error(("'%s'    must    inherit    from    'InlineModelAdmin'." % inline_label), obj=obj.__class__, id='admin.E104')]
    elif (not inline.model):
        return [checks.Error(("'%s'    must    have    a    'model'    attribute." % inline_label), obj=obj.__class__, id='admin.E105')]
    elif (not issubclass(inline.model, models.Model)):
        return must_be('a    Model', option=('%s.model' % inline_label), obj=obj, id='admin.E106')
    else:
        return inline(model, obj.admin_site).check()
