Commit 355f4b01 authored by Duc Anh Tran's avatar Duc Anh Tran Committed by GitHub

Add TextProperty and KeyProperty Field to support appengine

parent 4ab117db
......@@ -98,7 +98,7 @@ class XEditableWidget(object):
"""
Return extra kwargs based on the field type.
"""
if field.type == 'StringField':
if field.type in ['StringField', 'TextField']:
kwargs['data-type'] = 'text'
elif field.type == 'TextAreaField':
kwargs['data-type'] = 'textarea'
......@@ -142,7 +142,7 @@ class XEditableWidget(object):
kwargs['data-type'] = 'number'
kwargs['data-step'] = 'any'
elif field.type in ['QuerySelectField', 'ModelSelectField',
'QuerySelectMultipleField']:
'QuerySelectMultipleField', 'KeyPropertyField']:
# QuerySelectField and ModelSelectField are for relations
kwargs['data-type'] = 'select'
......
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