From 1d411b26a9abdfc037509f6414e7b7234c9b4fc2 Mon Sep 17 00:00:00 2001
From: Lukas <76838159+wolflu05@users.noreply.github.com>
Date: Mon, 19 Dec 2022 00:00:41 +0100
Subject: [PATCH] Load plugins for collectstatic (#4077)

---
 InvenTree/InvenTree/ready.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/InvenTree/InvenTree/ready.py b/InvenTree/InvenTree/ready.py
index c0f7c25141..a16b24ca1b 100644
--- a/InvenTree/InvenTree/ready.py
+++ b/InvenTree/InvenTree/ready.py
@@ -32,7 +32,6 @@ def canAppAccessDatabase(allow_test: bool = False, allow_plugins: bool = False):
         'prerender',
         'rebuild_models',
         'rebuild_thumbnails',
-        'collectstatic',
         'makemessages',
         'compilemessages',
         'backup',
@@ -51,6 +50,7 @@ def canAppAccessDatabase(allow_test: bool = False, allow_plugins: bool = False):
         excluded_commands.extend([
             'makemigrations',
             'migrate',
+            'collectstatic',
         ])
 
     for cmd in excluded_commands: