Re: Customizable error message for ``unique_together`` constraints

2010-04-11 Thread Russell Keith-Magee
On Mon, Apr 12, 2010 at 10:15 AM, orokusaki wrote: > The idea is basically to allow for the customization of the error > message that's raised during ``validate_unique()``. > > Example Error: > Widget with this Account and Name already exists. > > More Useful Error: > You already have a Widget wit

Customizable error message for ``unique_together`` constraints

2010-04-11 Thread orokusaki
The idea is basically to allow for the customization of the error message that's raised during ``validate_unique()``. Example Error: Widget with this Account and Name already exists. More Useful Error: You already have a Widget with this Name. (The only key difference is that if a field is hidde