Skip to content

Conversation

@sudip-khanal
Copy link
Contributor

Addresses

Changes

  • Detailed list or prose of changes
  • Update the bulk upload logic for XLSX file processing

Checklist

Things that should succeed before merging.

  • Updated/ran unit tests
  • Updated CHANGELOG.md

Release

If there is a version update, make sure to tag the repository with the latest version.


self._validate_csv(fieldnames)
except BulkUploadError as e:
workbook = openpyxl.load_workbook(file, data_only=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
workbook = openpyxl.load_workbook(file, data_only=True)
workbook = openpyxl.load_workbook(file, read_only=True)

https://openpyxl.readthedocs.io/en/3.1/api/openpyxl.reader.excel.html#openpyxl.reader.excel.load_workbook

buffer = io.BytesIO()
self._workbook.save(buffer)
buffer.seek(0)
return ContentFile(buffer.getvalue())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verify if we need the encoding here!

@sudip-khanal sudip-khanal force-pushed the feat/add-xlsx-import-template branch from 77fac75 to e818755 Compare October 31, 2025 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants