Got it. This doesn't become clear in the documentation as far as I can see, and even runs counter to the examples, but when validate_unique raises a ValidationError, it has to be one that was constructed from a messages dict! If not, kaboom inside Django.
Got it. This doesn't become clear in the documentation as far as I can see, and even runs counter to the examples, but when validate_unique raises a ValidationError, it has to be one that was constructed from a messages dict! If not, kaboom inside Django.