Move away from the legacy RegexField.error_message attribute.

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

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.

david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.0.x (87c72e5)
Loading...