def scaffold_sortable_columns(self):
    '\n            Return a dictionary of sortable columns (name, field)\n        '
    columns = {}
    for (n, f) in self._get_model_fields():
        if (type(f) in SORTABLE_FIELDS):
            if (self.column_display_pk or (type(f) != mongoengine.ObjectIdField)):
                columns[n] = f
    return columns
Return a dictionary of sortable columns (name, field)
def scaffold_sortable_columns(self):
    '\n            \n        '
    columns = {}
    for (n, f) in self._get_model_fields():
        if (type(f) in SORTABLE_FIELDS):
            if (self.column_display_pk or (type(f) != mongoengine.ObjectIdField)):
                columns[n] = f
    return columns