Skip to content

Commit

Permalink
Merge pull request #15 from moschlar/develop
Browse files Browse the repository at this point in the history
Make twf.Label validate to twc.EmptyField
  • Loading branch information
ralphbean committed Nov 5, 2012
2 parents 0578d04 + 83d8df3 commit ec51bee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tw2/forms/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,9 @@ class Label(twc.Widget):
label = None
id = None

def _validate(self, value, state=None):
return twc.EmptyField


class Form(twc.DisplayOnlyWidget):
"""
Expand Down

0 comments on commit ec51bee

Please sign in to comment.