Skip to content

Commit 786a4f8

Browse files
arslanashraf7leangseu-edx
authored andcommitted
fix: encode the csv data before saving
1 parent 8dc12b4 commit 786a4f8

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ Change Log
1313
1414
Unreleased
1515
----------
16+
[3.0.1] - 2022-02-17
17+
18+
* fix: encode the csv data before save
1619

1720
[3.0.0] - 2022-02-17
1821

super_csv/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
CSV Processor.
33
"""
44

5-
__version__ = '3.0.0'
5+
__version__ = '3.0.1'
66

77
default_app_config = 'super_csv.apps.SuperCSVConfig' # pylint: disable=invalid-name

super_csv/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def record_operation(cls, class_name_or_obj, unique_id, operation, data, origina
6969
original_filename=original_filename,
7070
user=user,
7171
)
72-
instance.data.save(uuid.uuid4(), ContentFile(data))
72+
instance.data.save(uuid.uuid4(), ContentFile(data.encode()))
7373
return instance
7474

7575
@classmethod

0 commit comments

Comments
 (0)