Skip to content

Commit

Permalink
Merge commit '125a107' into develop
Browse files Browse the repository at this point in the history
Conflicts:
	tw2/forms/widgets.py
  • Loading branch information
ralphbean committed Sep 6, 2012
2 parents 3c040e5 + 125a107 commit d4e3db4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tw2/forms/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ class FormField(twc.Widget):
'dom name',
request_local=False,
attribute=True,
# Default to compound_id *unless* the user has specified a data key.
default=property(
lambda s: (s.key and s.key != s.id) and s.key or 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 d4e3db4

Please sign in to comment.