def get_model_class(name):
    """
    This is being implemented to help
    with the Email Module, where we
    want to use a model for the email
    context without needing to import
    the model (which is most cases create
    a circular dependency, anyway)

    Beware that currently implementation
    returns the first match, so if a model
    with a same name exists in two different
    applications this will not work

    http://stackoverflow.com/a/13242421
    """
    LOGGER.warning('Beware, function returns first match in the model registry.')
    # iterate all registered models
    for model in apps.get_models():
        # return the app_label for first match
        if name == model._meta.object_name:
            app_label = model._meta.app_label
    return apps.get_model(app_label, name)