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 hidden like "Account",
I don't necessarily want the client to see it.)
The only idea I have for a solution is:
class Meta:
unique_together = (('account', 'name', 'You already have a
Widget with this Name.'),)
orokusaki
--
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-developers?hl=en.