Commit 5f797e71 authored by Sebastien Flory's avatar Sebastien Flory

[Fix] SortedListField not handled like ListField.

parent 315e8d28
...@@ -76,7 +76,7 @@ def create_ajax_loader(model, name, field_name, opts): ...@@ -76,7 +76,7 @@ def create_ajax_loader(model, name, field_name, opts):
ftype = type(prop).__name__ ftype = type(prop).__name__
if ftype == 'ListField': if ftype == 'ListField' or ftype == 'SortedListField':
prop = prop.field prop = prop.field
ftype = type(prop).__name__ ftype = type(prop).__name__
...@@ -97,7 +97,7 @@ def process_ajax_references(references, view): ...@@ -97,7 +97,7 @@ def process_ajax_references(references, view):
def handle_field(field, subdoc, base): def handle_field(field, subdoc, base):
ftype = type(field).__name__ ftype = type(field).__name__
if ftype == 'ListField': if ftype == 'ListField' or ftype == 'SortedListField':
child_doc = getattr(subdoc, '_form_subdocuments', {}).get(None) child_doc = getattr(subdoc, '_form_subdocuments', {}).get(None)
if child_doc: if child_doc:
......
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