Re: NumericListfilter or similar

2016-04-30 Thread Cristiano Coelho
Implementing a custom filter with an arbitrary text input is quite easy. All you need is a template and subclass of ListFilter. However I agree that it could be great that it comes already as an option by django since ListFilter and FieldFilter are usually not enough. -- You received this

Re: NumericListfilter or similar

2016-04-30 Thread Omer Korner
Released as a plugin: https://github.com/jbkkd/django-numericfieldlistfilter On Tuesday, 19 April 2016 17:49:36 UTC+3, Omer Korner wrote: > > 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

Re: NumericListfilter or similar

2016-04-26 Thread Tim Graham
Does it need to be in Django itself? I'd think probably not, at least to start, but if there's something prohibiting that, then let us know. On Tuesday, April 19, 2016 at 1:19:02 PM UTC-4, John Griebel wrote: > > I agree that we need a replacement; the current behaviour isn't all that > useful,

Re: NumericListfilter or similar

2016-04-19 Thread John Griebel
I agree that we need a replacement; the current behaviour isn't all that useful, IMHO. My vote would for choice #2, after all it seems more natural (to me, at least), to think of numbers as a range, especially while searching. Option 1 seems less intuitive for a situation like this. +1 from me,

NumericListfilter or similar

2016-04-19 Thread Omer Korner
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