Skip to content

Commit

Permalink
Merge pull request #2380 from TurnrDev/patch-1
Browse files Browse the repository at this point in the history
Fix incorrect docstrings in BaseModelView
  • Loading branch information
alanhamlett authored Oct 15, 2023
2 parents 0da8adc + 0950e92 commit 9835b28
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions flask_admin/model/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,8 +964,7 @@ def scaffold_list_columns(self):
Return list of the model field names. Must be implemented in
the child class.
Expected return format is list of tuples with field name and
display text. For example::
Expected return format is list of strings of the field names. For example::
['name', 'first_name', 'last_name']
"""
Expand Down Expand Up @@ -1496,7 +1495,7 @@ def _get_default_order(self):
def get_list(self, page, sort_field, sort_desc, search, filters,
page_size=None):
"""
Return a paginated and sorted list of models from the data source.
Return a tuple of a count of results and a paginated and sorted list of models from the data source.
Must be implemented in the child class.
Expand Down

0 comments on commit 9835b28

Please sign in to comment.