Skip to content
Snippets Groups Projects
Commit 1e188aaf authored by Julian's avatar Julian
Browse files

Show datachecks from installed apps only

parent ed9626d3
No related branches found
No related tags found
1 merge request!609Resolve "AttributeError at /data_check/ for datachecks from uninstalled apps"
Pipeline #10849 passed
......@@ -797,7 +797,11 @@ class DataCheckView(PermissionRequiredMixin, ListView):
context_object_name = "results"
def get_queryset(self) -> QuerySet:
return DataCheckResult.objects.filter(solved=False).order_by("check")
return (
DataCheckResult.objects.filter(content_type__app_label__in=apps.app_configs.keys())
.filter(solved=False)
.order_by("check")
)
def get_context_data(self, **kwargs: Any) -> dict[str, Any]:
context = super().get_context_data(**kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment