Skip to content

Commit

Permalink
Revert "Handle empty-string prompt_text appropriately. Relates to #7."
Browse files Browse the repository at this point in the history
This reverts commit 8a12a93.
  • Loading branch information
ralphbean committed Jul 21, 2012
1 parent 8a12a93 commit 9d1027a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tw2/forms/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,8 @@ def prepare(self):
if group:
self.grouped_options.append((unicode(optgroup[0]), opts))

if self.prompt_text:
if self.prompt_text is not None:
self.options = [('', self.prompt_text)] + self.options

if not self.grouped_options:
self.grouped_options = [(None, self.options)]
elif self.prompt_text is not None:
Expand Down

0 comments on commit 9d1027a

Please sign in to comment.