From 3cdcdd0535d5a312dbd57ea335b10cc00946aa87 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 11 Aug 2021 11:07:30 +1000 Subject: [PATCH] Create report templates when testing --- InvenTree/report/apps.py | 2 +- InvenTree/report/views.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 InvenTree/report/views.py diff --git a/InvenTree/report/apps.py b/InvenTree/report/apps.py index 43c52b1997..21b3cc380e 100644 --- a/InvenTree/report/apps.py +++ b/InvenTree/report/apps.py @@ -19,7 +19,7 @@ class ReportConfig(AppConfig): This function is called whenever the report app is loaded """ - if canAppAccessDatabase(): + if canAppAccessDatabase(allow_test=True): self.create_default_test_reports() self.create_default_build_reports() diff --git a/InvenTree/report/views.py b/InvenTree/report/views.py deleted file mode 100644 index a2b5079b33..0000000000 --- a/InvenTree/report/views.py +++ /dev/null @@ -1,2 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals