Skip to content

Commit

Permalink
Add note that SelectionField needs some fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
josephtate committed Dec 24, 2010
1 parent bb14627 commit 1efae7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tw2/forms/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ def _validate(self, value):

if self.multiple:
if isinstance(value, basestring):
#TODO: Fix this, it's awkward if value is "" or None because
#the resulting list is no longer False.
value = [value,]
self.value = value
if self.item_validator:
Expand Down

0 comments on commit 1efae7b

Please sign in to comment.