def _get_model(model):
    m = get_model(*model.split('.'))
    if m is None:
        raise TemplateSyntaxError("Generic content tag got invalid model: %s" % model)
    return m
dataset/ETHPy150Open justquick/django-native-tags/native_tags/contrib/generic_content.py/_get_model/original