Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use widget compound key when vailable to generate FormField name value

  • Loading branch information...
commit 125a107e5a3c01922fd21716260fdfeb03338a27 1 parent 24340b4
@amol- amol- authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tw2/forms/widgets.py
View
2  tw2/forms/widgets.py
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.