use new PicklableUpload.get_content() in FileField json export (#7258)
This commit is contained in:
parent
4f7f35af31
commit
add1375c0e
|
@ -713,7 +713,7 @@ class FileField(WidgetField):
|
||||||
'field_id': self.id,
|
'field_id': self.id,
|
||||||
'filename': value.base_filename,
|
'filename': value.base_filename,
|
||||||
'content_type': value.content_type or 'application/octet-stream',
|
'content_type': value.content_type or 'application/octet-stream',
|
||||||
'content': base64.b64encode(value.get_file_pointer().read())
|
'content': base64.b64encode(value.get_content())
|
||||||
}
|
}
|
||||||
|
|
||||||
def perform_more_widget_changes(self, form, kwargs, edit = True):
|
def perform_more_widget_changes(self, form, kwargs, edit = True):
|
||||||
|
|
Loading…
Reference in New Issue