def scaffold_list_columns(self):
    '\n            Scaffold list columns\n        '
    columns = []
    for (n, f) in self._get_model_fields():
        field_class = type(f)
        if ((field_class == mongoengine.ListField) and isinstance(f.field, mongoengine.EmbeddedDocumentField)):
            continue
        if (field_class == mongoengine.EmbeddedDocumentField):
            continue
        if (self.column_display_pk or (field_class != mongoengine.ObjectIdField)):
            columns.append(n)
    return columns
Scaffold list columns
def scaffold_list_columns(self):
    '\n            \n        '
    columns = []
    for (n, f) in self._get_model_fields():
        field_class = type(f)
        if ((field_class == mongoengine.ListField) and isinstance(f.field, mongoengine.EmbeddedDocumentField)):
            continue
        if (field_class == mongoengine.EmbeddedDocumentField):
            continue
        if (self.column_display_pk or (field_class != mongoengine.ObjectIdField)):
            columns.append(n)
    return columns