#12698: ValidationError bug when passing a string message argument in model validation -------------------------------------+------------------------------------- Reporter: orokusaki | Owner: nobody Type: Uncategorized | Status: closed Component: Database layer | Version: master (models, ORM) | Resolution: fixed Severity: Normal | Triage Stage: Accepted Keywords: core.exceptions, | Needs documentation: 0 core.forms.models, model | Patch needs improvement: 0 validation | UI/UX: 0 Has patch: 1 | Needs tests: 1 | Easy pickings: 0 | -------------------------------------+-------------------------------------
Comment (by Kapura): I also tried to override validate_unique for one of my models that would check the name field against other data in the app to verify uniqueness before the save. In my opinion, the documentation should specify the limitations of validate_unique to discourage its use for raising errors, or deprecate it entirely and move all of the relevant code to clean(). -- Ticket URL: <https://code.djangoproject.com/ticket/12698#comment:10> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.