Commit 0539ac75 authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #1268 from pawl/prevent_pymongo_notimplemented

prevent NotImplementedError in get_details_columns
parents 9bfd1966 122e064c
......@@ -987,9 +987,12 @@ class BaseModelView(BaseView, ActionsMixin):
Uses `get_column_names` to get a list of tuples with the model
field name and formatted name for the columns in `column_details_list`
and not in `column_details_exclude_list`. If `column_details_list`
is not set, the columns from `scaffold_list_columns` will be used.
is not set, it will attempt to use the columns from `column_list`
or finally the columns from `scaffold_list_columns` will be used.
"""
only_columns = self.column_details_list or self.scaffold_list_columns()
only_columns = (self.column_details_list or self.column_list or
self.scaffold_list_columns())
return self.get_column_names(
only_columns=only_columns,
excluded_columns=self.column_details_exclude_list,
......
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