#28619: Handle ValidationError in change views -------------------------------+-------------------------------------- Reporter: Daniel Hahler | Owner: nobody Type: New feature | Status: new Component: contrib.admin | Version: 1.11 Severity: Normal | Resolution: Keywords: | Triage Stage: Unreviewed Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+--------------------------------------
Comment (by Simon Charette): Raising `ValidationError` during model save isn't a pattern used anywhere else in the code base. I'm not sure the admin should be different in this regard. Ideally there would be a normalized API to raise constraint violation exceptions during `save()` which could wrap existing database level violations errors (e.g. `IntegrityError`) which `django-fsm` could rely on but that's not the case now. -- Ticket URL: <https://code.djangoproject.com/ticket/28619#comment:1> 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/065.ba05f9de4654e3fb9bc813d698072370%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.