Commit 30d2add1 authored by Duc Anh Tran's avatar Duc Anh Tran Committed by GitHub

Add SelectField to support appengine

parent 355f4b01
......@@ -111,7 +111,7 @@ class XEditableWidget(object):
{'value': '1', 'text': gettext('Yes')}
])
kwargs['data-role'] = 'x-editable-boolean'
elif field.type == 'Select2Field':
elif field.type in ['Select2Field', 'SelectField']:
kwargs['data-type'] = 'select'
choices = [{'value': x, 'text': y} for x, y in field.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