def monkeypatch_urltype():
    """
    Replace schematics URL check regex with a better one (stolen from Django).

    This patch cannot be applied to Schematics 2.* because the URL validation
    is more complex.
    """
    from schematics.types import URLType
    from spidermon.contrib.validation.utils import URL_REGEX
    URLType.URL_REGEX = URL_REGEX
