Permalink
Browse files

Use widget compound key when vailable to generate FormField name value

  • Loading branch information...
amol- committed Sep 6, 2012
1 parent 24340b4 commit 125a107e5a3c01922fd21716260fdfeb03338a27
Showing with 1 addition and 1 deletion.
  1. +1 −1 tw2/forms/widgets.py
View
@@ -13,7 +13,7 @@ class FormField(twc.Widget):
'dom name',
request_local=False,
attribute=True,
- default=property(lambda s: s.compound_id)
+ default=property(lambda s: hasattr(s, 'compound_key') and s.compound_key or s.compound_id)
)
@property

0 comments on commit 125a107

Please sign in to comment.