modlinltd / django-advanced-filters

Add advanced filtering abilities to Django admin
https://pypi.org/project/django-advanced-filters/
MIT License
769 stars 172 forks source link

+ add optional CSP nonce to allow inline script compliance #171

Open slorg1 opened 2 years ago

slorg1 commented 2 years ago

Surgical updates to comply with basic CSP. This allows the required inline script for this django extension to run in a safe way.

If django CSP is not installed: everything works seamlessly :smile_cat:

Note: this PR does not cover inline styles but the styles do not block the functionality, only the scripts did.