From: Michael Elsdoerfer Date: Fri, 23 Oct 2009 01:11:24 +0000 (+0200) Subject: Added some considerations wrt adding filtering support. X-Git-Tag: 0.2~29^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=768bbc14f778b032a8d7e9ed45f6fa800183389b;p=django-tables2.git Added some considerations wrt adding filtering support. --- diff --git a/README b/README index 6a161f5..41b5afc 100644 --- a/README +++ b/README @@ -599,4 +599,16 @@ We need to think about how we make the functionality available to templates. Another feature that would be important is the ability to limit the valid -values for a filter, e.g. in the date example only years from 2000 to 2008. \ No newline at end of file +values for a filter, e.g. in the date example only years from 2000 to 2008. + +Use django-filters: + - would support html output + - would not work at all with our planned QueryTable + - conflicts somewhat in that it also allows ordering + +To autoamtically allow filtering a column with filter=True, we would need to +have subclasses for each model class, even if it just redirects to use the +correct filter class; + +If not using django-filter, we wouldn't have different filter types; filters +would just hold the data, and each column would know how to apply it. \ No newline at end of file