Closed dibusan closed 9 months ago
Could you give more information? Perhaps the full step-by-step scenario?
I checked base cases and the query string generated correctly
CSP error that I cannot track. It only shows briefly when I click the range filter search and then disappears once the filer is applied (page reloads). I can say confidently this CSP error is not coming from any of our templates. Perhaps the solution in a specific CSP config ?
@silentsokolov
I had seen this in the README but didn't understand it before. Where exactly should this setting be configured ? I add it to settings.py
at the first level but has no effect.
Better view of this issue and pinpointing the template that has the CSP error:
I have set ADMIN_RANGEFILTER_NONCE_ENABLED = True
in settings.py
with no effect
django-admin-rangefilter
supports only default admin UI.@silentsokolov Even with CSP working (that means ADMIN_RANGEFILTER_NONCE_ENABLED = True
in settings.py
), the NumericRangeFilter does not load CSP in v 0.9.0
:
NumericRangeFilter
(rangefilter/numeric_filter.html
) does not make an attempt to load the CSP. This is also true for v 0.11.2
. There is no numeric_filter_csp.html
file, and the regular numeric_filter.html
does not attempt to load CSP.get_template
for these 2 Classes, see screenshots attacheddate_filter_csp.html
but it does not include a numeric_filter_csp.html
, see screenshot attached
Thx, fix
django_filters
app.rangefilter
.Django: 3.2.22
django-admin-rangefilter: 0.9.0