#28507: Allow ValidationErrors to equal each other when created identically ---------------------------------+------------------------------------ Reporter: kamni | Owner: nobody Type: New feature | Status: new Component: Core (Other) | Version: 1.11 Severity: Normal | Resolution: Keywords: ValidationError | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ---------------------------------+------------------------------------
Comment (by Markus Holtermann): I probably wouldn't want to limit the comparison to an error's message but rather to its full set of attributes (`message`, `code`, `params`). While `params` is always pushed into `message` when iterating over the errors in an `ValidationError`, I believe it can be beneficial to know if the params that were put inside are the same. -- Ticket URL: <https://code.djangoproject.com/ticket/28507#comment:3> 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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/063.bc163e66a3ef31b38abc47b73d20a97a%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.