demiroren-teknoloji / django-admin-autocomplete-list-filter

Ajax autocomplete list filter for Django admin
MIT License
83 stars 31 forks source link

staticfiles error #4

Closed cyberbudy closed 3 years ago

cyberbudy commented 4 years ago

django admin raises exception 'staticfiles' is not a registered tag library, because the staticfiles and admin_static template tag libraries are removed in 3.0. There is a PR https://github.com/demiroren-teknoloji/django-admin-autocomplete-list-filter/pull/3 that is not accepted

canadiyaman commented 4 years ago

@vigo can you check it?

vigo commented 4 years ago

@canadiyaman will check soon

skanel commented 4 years ago

I made it work by override the template and removed staticfiles by just static the content of file autocomplete_list_filter.html will like this

/YOUR_PROJECT_DJANGO/templates/djaa_list_filter/admin/filter/autocomplete_list_filter.html

{% load  static %}

<form method="get">
<ul>
    <li>{{ spec.autocomplete_form.autocomplete_field }}</li>
</ul>
{{ spec.autocomplete_form.querystring_value }}
</form>
vigo commented 3 years ago

Just gained write access, will handle asap

vigo commented 3 years ago

Fixed now! thanks