Open henryk opened 2 months ago
Click to see where and how coverage changed
File Statements Missing Coverage Coverage
(new stmts)Lines missing
django_filters
utils.py
Project Total
This report was generated by python-coverage-comment-action
As is, django-filter is not compatible with django-scopes. Django-scopes is an additional guardrail which prevents accidental data exposure. It replaces the default manager of a model with a specialized manager that will refuse queries, unless a scope is active, that is there is a restriction along the critical dimensions are present.
This breaks most usages of the
.all()
queryset. But luckily, many usages that only care about the queryset itself and not the contents can be replaced with.none()
.This pull request replaces the critical all usage with none. Nothing else is changed.
Example exception fixed by this PR: