Skip to content

Commit

Permalink
Use widget compound key when vailable to generate FormField name value
Browse files Browse the repository at this point in the history
  • Loading branch information
amol- committed Sep 6, 2012
1 parent 24340b4 commit 125a107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tw2/forms/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 125a107

Please sign in to comment.