This is a proposal for a new ListFilter subclass.

Currently, if you add a numeric field to list_filter, Django admin outputs 
all possible values of that field using AllValuesFieldListFilter. This can 
get ugly very quickly.
For example, in my case, I have an application that manages transactions 
(orders) from an ecommerce site, and saves the transaction value. I can't 
easily filter the values (hundreds of thousands of them).

I have two suggestions for a replacement, instead of outputting all 
available values for a numeric field:


   1. Output something similar to what DateFieldListFilter does, eg. "10 or 
   less/more, 15 or less" and so on, depending on real values. 
   
   
   
<https://lh3.googleusercontent.com/-vtH7qmf61l0/VxZDq_HOHNI/AAAAAAAAK7w/SGwtgU-rABEihmO-tNfzhl944FC-rVUGgCKgB/s1600/Screenshot%2Bfrom%2B2016-04-19%2B17%253A41%253A00.png>
   
   2. A numeric input. These an be two inputs for a range, or a single 
   input for a specific value. Looking at the ListFilter code, this would be a 
   much more complex change.


Happy to hear your thoughts.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/9ef08349-f6a6-48ed-bc30-5b62072fb749%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to