Closed daphtdazz closed 6 months ago
It just shows the date range picker.
The problem seems to be that DateRangeQuickSelectListFilter overrides get_template() but DateRangeFilter defines:
DateRangeQuickSelectListFilter
get_template()
DateRangeFilter
def get_template(self): ... template = property(get_template)
So DateRangeQuickSelectListFilter().template calls DateRangeFilter.get_template() instead of DateRangeQuickSelectListFilter.get_template()
DateRangeQuickSelectListFilter().template
DateRangeFilter.get_template()
DateRangeQuickSelectListFilter.get_template()
I'm on django 4.2.13 don't know if maybe something changed in django to affect this (maybe it used to use get_template()..?).
If I get a sec I will push a fix but I'm patching it for myself locally like this:
from rangefilter.filters import DateRangeQuickSelectListFilter DateRangeQuickSelectListFilter.template = property(DateRangeQuickSelectListFilter.get_template)
Fixed, thx!
It just shows the date range picker.
The problem seems to be that
DateRangeQuickSelectListFilter
overridesget_template()
butDateRangeFilter
defines:So
DateRangeQuickSelectListFilter().template
callsDateRangeFilter.get_template()
instead ofDateRangeQuickSelectListFilter.get_template()
I'm on django 4.2.13 don't know if maybe something changed in django to affect this (maybe it used to use
get_template()
..?).If I get a sec I will push a fix but I'm patching it for myself locally like this: