enhancement of the ICapMessages.Message object
This commit is contained in:
parent
1fd52b7ba8
commit
50d0c9a728
8 changed files with 82 additions and 111 deletions
|
|
@ -132,7 +132,6 @@ class BaseBackend(object):
|
|||
elif isinstance(field.default, float) and not isinstance(value, float):
|
||||
value = float(value)
|
||||
|
||||
print value, field.choices
|
||||
if field.choices:
|
||||
if (isinstance(field.choices, (tuple,list)) and not value in field.choices) or \
|
||||
(isinstance(field.choices, dict) and not value in field.choices.iterkeys()):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue