﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
37329	Allow customizing ValidationError code in UniqueConstraint	Tim Schilling	Md. Saikat Islam	"This is based on @xafer's [https://github.com/django/django/pull/16598 PR]. It was a follow-up to #34338.

> Since violation_error_code could never be defined for UniqueConstraint prior to [https://github.com/django/django/pull/16560 #16560] there is no backward compatibility to bother with.
> But if the user bothered to provide a violation_error_code to its UniqueConstraint it is likely expecting it to be used.

I think it makes sense given that we now allow more customization of these constraints to allow customizing the `violation_error_code` as well."	Uncategorized	assigned	Database layer (models, ORM)		Normal				Accepted	0	0	0	0	0	0
