silentsokolov / django-admin-rangefilter

A Django app that lets you filter data by date range and numeric range in the admin UI
MIT License
713 stars 106 forks source link

`nonce` breaks admin inlines styles. #74

Closed fabiocaccamo closed 2 years ago

fabiocaccamo commented 2 years ago

Hello, thanks for this nice package.

I'm using it in a project where I use also django-csp, so this library automatically enables nonce. This causes an error in Chrome, even if I added "'unsafe-inline'" to my csp config:

Note that 'unsafe-inline' is ignored if either a hash or nonce value is present in the source list.

Could you make the nonce optional based on a setting?