Commit 2484fc91 by Ian Foote

Add more context to the ChoiceField metadata.

parent a38d9d5b
......@@ -516,7 +516,7 @@ class ChoiceField(WritableField):
def metadata(self):
data = super(ChoiceField, self).metadata()
data['choices'] = self.choices
data['choices'] = [{'value': v, 'name': n} for v, n in self.choices]
return data
def validate(self, value):
......
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