Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination Error in Django Admin panel when there is a lot of data to show #517

Open
Abhijit2505 opened this issue Nov 19, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Abhijit2505
Copy link

In template python3.10/site-packages/jazzmin/templates/admin/pagination.html, error at line 29

<div class="col-7">
<ul class="pagination pagination-sm m-0 float-right">
{% if pagination_required %}
<li class="page-item previous disabled">
<a class="page-link" href="#" data-dt-idx="0" tabindex="0">«</a>
</li>
{% for i in page_range %}
{% jazzmin_paginator_number cl i %}
{% endfor %}
<li class="page-item next disabled">
<a class="page-link" href="#" data-dt-idx="7" tabindex="0">»</a>
</li>
{% endif %}
</ul>
</div>

As per this code line, there is an error in the pagination which is,

'can only concatenate str (not "int") to str'

@jamesgilmorelyst jamesgilmorelyst added the bug Something isn't working label Mar 23, 2024
@jagdis01
Copy link

faced similar issue in 2.3.3 version
upgraded to latest version 3.0.0 and it worked

@muhammadyusuf201112
Copy link

Hello

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants