Commit a38d9d5b by Ian Foote

Add choices to options metadata for ChoiceField.

parent 43c4e3aa
......@@ -514,6 +514,11 @@ class ChoiceField(WritableField):
choices = property(_get_choices, _set_choices)
def metadata(self):
data = super(ChoiceField, self).metadata()
data['choices'] = self.choices
return data
def validate(self, value):
"""
Validates that the input is in self.choices.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment