• 
      

    Move away from the legacy RegexField.error_message attribute.

    Review Request #9666 — Created Feb. 18, 2018 and submitted — Latest diff uploaded

    Information

    Djblets
    release-1.0.x
    037bca7...

    Reviewers

    RegexField.error_message has been deprecated for a long time, with
    the standard RegexField.error_messages taking its place. Modern
    versions of Django finally got rid of the legacy attribute, and it's
    long past time for us to do so as well. This switches to the new-style
    error messages dictionary.

    Unit tests pass.

    Tested manually that the validation error appears when the regex is
    not matched.