From 32a8d247e27f8eb84d89dadfbdbf1afbfce651e8 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 21 Nov 2021 22:12:58 +1100 Subject: [PATCH] Fix for BomItem import in admin page --- InvenTree/part/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/part/admin.py b/InvenTree/part/admin.py index 90543d429d..63f48a4e07 100644 --- a/InvenTree/part/admin.py +++ b/InvenTree/part/admin.py @@ -205,7 +205,7 @@ class BomItemResource(ModelResource): # If we are not generating an "import" template, # just return the complete list of fields - if not self.is_importing: + if not getattr(self, 'is_importing', False): return fields # Otherwise, remove some fields we are not interested in