# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1242121770 -7200 # Node ID 2cfd50c8a415755fa71f15d34432ae70c8b8c275 # Parent 53af44f1b6494988fe8272cd300b7b30130bdc31 should not override potential explicit widget diff -r 53af44f1b649 -r 2cfd50c8a415 web/formfields.py --- a/web/formfields.py Tue May 12 11:49:12 2009 +0200 +++ b/web/formfields.py Tue May 12 11:49:30 2009 +0200 @@ -388,7 +388,8 @@ @staticmethod def fromcardinality(card, **kwargs): - return RelationField(widget=Select(multiple=card in '*+'), **kwargs) + kwargs.setdefault('widget', Select(multiple=card in '*+')) + return RelationField(**kwargs) def vocabulary(self, form): entity = form.edited_entity