# HG changeset patch # User Alexandre Fayolle # Date 1292962670 -3600 # Node ID 7351806cd485e9e493ad5bd43588fc41aeb21a28 # Parent ef513c03a22489d7f8d151ae75ca9953d2f46997 fix error message for unique together constraint diff -r ef513c03a224 -r 7351806cd485 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))