saxix / django-adminfilters Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
This filter is broken (at least in Django 5)
To reproduce:
Was wondering if there would be added support for selecting multiple values for the AutocompleteFilter. If not, was wondering if anyone knew any library/project that does have support for it.
For example ('mission__number', NumberFilter), will result in an error failing silenty and not applying the filter.
It would be great if there were support for date in the filters.
Thanks for this project.
Regards
Hi, I have a similar project containing filters to allow multiple selections. Could we merge this into your application? See: https://github.com/kevwilde/django-adminfilters
Django 5 introduced a change in the querydict parameters.
Django 5 breaks the AutocompleteFilter
In demo example:
LinkedAutoCompleteFilter.factory(title='Favourite Country')),
("favourite_city__region",
LinkedAutoCompleteFilter.factory(title="Favourite Region", parent='favourite_city__region__country')),
("favourite_city",
LinkedAutoCompleteFilter.factory(title="Favourite City", parent='favourite_city__region')),
If we add a filter like:
("favourite_city", LinkedAutoCompleteFilter.factory(title="Favourite City in Country", parent='favourite_city__region__country')),
it will not load the JS on it
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.