Merge pull request #2343 from SchrodingersGat/bom-import-tweaks

Fix for BomItem import in admin page
This commit is contained in:
Oliver 2021-11-21 22:38:32 +11:00 committed by GitHub
commit b1930404bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -205,7 +205,7 @@ class BomItemResource(ModelResource):
# If we are not generating an "import" template, # If we are not generating an "import" template,
# just return the complete list of fields # just return the complete list of fields
if not self.is_importing: if not getattr(self, 'is_importing', False):
return fields return fields
# Otherwise, remove some fields we are not interested in # Otherwise, remove some fields we are not interested in