fix error message for unique together constraint stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Tue, 21 Dec 2010 21:17:50 +0100
branchstable
changeset 6752 7351806cd485
parent 6750 ef513c03a224
child 6753 2bbc1010494c
fix error message for unique together constraint
entities/adapters.py
--- a/entities/adapters.py	Sat Dec 18 23:11:58 2010 +0100
+++ b/entities/adapters.py	Tue Dec 21 21:17:50 2010 +0100
@@ -484,5 +484,5 @@
     def raise_user_exception(self):
         etype, rtypes = self.exc.args
         msg = self._cw._('violates unique_together constraints (%s)') % (
-            ', '.join(self._cw._(rtypes)))
+            ', '.join([self._cw._(rtype) for rtype in rtypes]))
         raise ValidationError(self.entity.eid, dict((col, msg) for col in rtypes))