Message192295
Changing _check_value from:
def _check_value(self, action, value):
# converted value must be one of the choices (if specified)
if action.choices is not None and value not in action.choices:
...
to
def _check_value(self, action, value):
# converted value must be one of the choices (if specified)
if action.choices is not None:
choices = action.choices
if isinstance(choices, str):
choices = list(choices)
if value not in action.choices:
...
would correct the string search without affecting other types of choices. |
|
Date |
User |
Action |
Args |
2013-07-04 15:09:04 | paul.j3 | set | recipients:
+ paul.j3, eric.smith, chris.jerdonek, jeffknupp |
2013-07-04 15:09:04 | paul.j3 | set | messageid: <1372950544.28.0.271911541037.issue16977@psf.upfronthosting.co.za> |
2013-07-04 15:09:04 | paul.j3 | link | issue16977 messages |
2013-07-04 15:09:04 | paul.j3 | create | |
|