diff --git a/tdrs-backend/tdpservice/data_files/views.py b/tdrs-backend/tdpservice/data_files/views.py index 3312b9da4..9365b80bc 100644 --- a/tdrs-backend/tdpservice/data_files/views.py +++ b/tdrs-backend/tdpservice/data_files/views.py @@ -151,6 +151,7 @@ def download_error_report(self, request, pk=None): filtered_errors = None user = self.request.user if not (user.is_ofa_sys_admin or user.is_ofa_admin): + # All cat1/4 errors error_type_query = Q(error_type=ParserErrorCategoryChoices.PRE_CHECK) | \ Q(error_type=ParserErrorCategoryChoices.CASE_CONSISTENCY) filtered_errors = all_errors.filter(error_type_query)