diff --git a/CHANGELOG.md b/CHANGELOG.md index e8bb04d..1ada980 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## [Unreleased] +### Added +- Add csp compliance through django-csp (thanks @jsumnerPhD) + ## [0.4.0] - 2019-04-19 ### Changed - Changed name lookup field `{field}__gte` -> `{field}__range__gte` diff --git a/README.rst b/README.rst index ed8ec80..8ed30a8 100755 --- a/README.rst +++ b/README.rst @@ -42,21 +42,6 @@ Example: ) -For Django 1.8+, if django-csp is installed, nonces will be added to style and script tags. - -Example: - -.. code:: python - - INSTALLED_APPS = ( - ... - 'rangefilter', - "csp", - ... - ) - - - Example usage ------------- @@ -76,3 +61,18 @@ In admin list_filter = ( ('created_at', DateRangeFilter), ('updated_at', DateTimeRangeFilter), ) + + +Support Content-Security-Policy +------------------------------- + +For Django 1.8+, if [django-csp](https://github.com/mozilla/django-csp) is installed, nonces will be added to style and script tags. + +.. code:: python + + INSTALLED_APPS = ( + ... + 'rangefilter', + 'csp', + ... + )