django-csp-reports
django-csp-reports copied to clipboard
Improved admin usability
I did a few updates to make the admin slightly nicer to use.
- Disabled add/change
- Fixed JSON rendering
- Added search, date_hierarchy and filter to list view
- Added is_valid field to list view
Also set the model name so the casing is better in menus and translatable
Fixes part of #25
Thanks.
Does the addition of the has_add_permission
and has_change_permission
methods mean that all reports become uneditable in the admin and you can't add new ones? I can see that that makes a lot of sense, but I'm not sure whether enforcing it as the default is necessarily what we want to do 🤔 . I would be tempted to just leave that up to the developer of a project, and leave the defaults to be less restrictive. But I'm on the fence about it.
Convince me? 😀
As this is a logging module for reporting purposes I thought it'd be unlikely you'd add or modify records.