--- a/web/formfields.py Tue Oct 06 17:18:23 2009 +0200
+++ b/web/formfields.py Tue Oct 06 17:45:10 2009 +0200
@@ -536,9 +536,9 @@
kwargs['required'] = card in '1+'
kwargs['name'] = rschema.type
if role == 'object':
- kwargs['label'] = (eschema.type + '_object', rschema.type)
+ kwargs.setdefault('label', (eschema.type, rschema.type + '_object'))
else:
- kwargs['label'] = (eschema.type, rschema.type)
+ kwargs.setdefault('label', (eschema.type, rschema.type))
kwargs.setdefault('help', help)
if rschema.is_final():
if skip_meta_attr and rschema in eschema.meta_attributes():