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