def inject_extra_field_to_model(from_model, field_name, field):
    if not isinstance(from_model, six.string_types):
        field.contribute_to_class(from_model, field_name)
        return
    raise Exception('from_model must be a Model Class')