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

list_filter doesn`t display in jet admin panel, but it is shown in the normal version of the admin panel: python 3.10 django 4.1 #520

Open
Bombi-fm opened this issue Dec 26, 2022 · 3 comments

Comments

@Bombi-fm
Copy link

No description provided.

@l1n-x
Copy link

l1n-x commented Feb 5, 2023

In new versions of Django, the filter template has changed. Try adding a file with this code to templates/admin/filter.html inside the project to redefine the template.

{% load i18n %}
<h3>{% blocktranslate with filter_title=title %} By {{ filter_title }} {% endblocktranslate %}</h3>
<ul>
{% for choice in choices %}
    <li{% if choice.selected %} class="selected"{% endif %}>
    <a href="{{ choice.query_string|iriencode }}" title="{{ choice.display }}">{{ choice.display }}</a></li>
{% endfor %}
</ul>

@alexandrumd
Copy link

thanks for the solution!
works in my case as well, after upgrading to Django==4.2.5 and from r-django-jet==2.0.8 to django-4-jet==1.0.9

@octopo-io
Copy link

Works like a charm! thanks l1n-x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants