silentsokolov / django-admin-rangefilter

A Django app that lets you filter data by date range and numeric range in the admin UI
MIT License
713 stars 106 forks source link

Search does not occur after pressing the "search" button #64

Closed kebrick closed 3 years ago

kebrick commented 3 years ago

Django 3.2, Jazzmin UI

silentsokolov commented 3 years ago

Is default admin ui?

kebrick commented 3 years ago

No I'm using jazzmin ui

silentsokolov commented 3 years ago

We support only the default admin ui (( You can override templates for your ui if needed.

Welcome PR))

kebrick commented 3 years ago

Может кому поможет, js скрипт пытается вытащить данные из формы под id="{{ choices.0.system_name }}-form". Но Jazzmin UI рендерит форму под id="changelist-search" Как это правильно исправить я пока не знаю. Пример формы test.zip

mudsut4ke commented 3 years ago

@kebrick ,I also found this issue with jazzmin ui Do you have a solution to this issue ?

kebrick commented 3 years ago

@kebrick , я тоже обнаружил эту проблему с jazzmin ui. У вас есть решение этой проблемы? This is a bad decision on my part, but I had to take the source codes and change the "date_filter.html" template. I removed the whole block (

) and added "{{spec.form}}" instead date_filter.zip

mudsut4ke commented 3 years ago

@kebrick , Thank you