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 wrote:
> Hi, there have been some past discussions, e.g.
> https://groups.google.com/g/django-developers/c/Dju2vvbzECI/m/vYDnYe
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 a
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,