Skip to content

Commit

Permalink
update page number parameter when changing page size
Browse files Browse the repository at this point in the history
  • Loading branch information
numberbee7070 authored Jun 15, 2024
1 parent 870f628 commit d4257a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqladmin/templates/sqladmin/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ <h3 class="card-title">{{ model_view.name_plural }}</h3>
</a>
<div class="dropdown-menu">
{% for page_size_option in model_view.page_size_options %}
<a class="dropdown-item" href="{{ request.url.include_query_params(pageSize=page_size_option) }}">
<a class="dropdown-item" href="{{ request.url.include_query_params(pageSize=page_size_option,page=((pagination.page - 1) * pagination.page_size // page_size_option + 1)}}">
{{ page_size_option }} / Page
</a>
{% endfor %}
Expand Down

0 comments on commit d4257a2

Please sign in to comment.