Message180197
Attached a patch. Rather than altering choices or making a special check for string instances, I just changed the if statement to
if action.choices is not None and value not in list(action.choices):
from
if action.choices is not None and value not in action.choices:
It has the added benefit of handling all sequence types correctly (rather than just strings). I tried to think of a case where this wouldn't work as expected, but wasn't able to. |
|
Date |
User |
Action |
Args |
2013-01-18 15:51:21 | jeffknupp | set | recipients:
+ jeffknupp, eric.smith, chris.jerdonek |
2013-01-18 15:51:21 | jeffknupp | set | messageid: <1358524281.51.0.106498842895.issue16977@psf.upfronthosting.co.za> |
2013-01-18 15:51:21 | jeffknupp | link | issue16977 messages |
2013-01-18 15:51:21 | jeffknupp | create | |
|