def is_abstract_model(model):
    """
    Checks model whether it abstract or not.
    """
    is_instantiated_table = hasattr(model, '__table__')
    has_specified_abstract_attribute = getattr(model, '__abstract__', False)
    return not is_instantiated_table and has_specified_abstract_attribute
