See also https://code.djangoproject.com/ticket/30581 which hoists constraint validation to forms in general, not just the admin.
On Fri, 8 Oct 2021 at 13:43, Tim Graham <timogra...@gmail.com> wrote: > Hi, there have been some past discussions, e.g. > https://groups.google.com/g/django-developers/c/Dju2vvbzECI/m/vYDnYekgBQAJ > > On Friday, October 8, 2021 at 6:34:02 AM UTC-4 Fab wrote: > >> Hi, >> >> When I violate a unique constraint in the admin I get an error page. >> >> I know I can check this myself and show an error message when the form is >> cleaned but I feel like this should be handled by default. >> >> Are there any reasons why it shouldn't show an error message on the admin >> page? >> >> Cheers, >> >> Fabian >> > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/f9de59af-cf84-4218-a373-21fdcc0a3241n%40googlegroups.com > <https://groups.google.com/d/msgid/django-developers/f9de59af-cf84-4218-a373-21fdcc0a3241n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMyDDM1-9OjfFt8fqbaYr7Fd%2BftRPnT3wz--iWqrb-yuQdMZKg%40mail.gmail.com.