mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-26 08:39:08 +01:00
Fix import format fail
This commit is contained in:
parent
9e71fc8467
commit
4cd66d7e0c
@ -687,7 +687,8 @@ def extract_part_data(
|
|||||||
name = f"part-{counter}{ext}"
|
name = f"part-{counter}{ext}"
|
||||||
else:
|
else:
|
||||||
name = f"part-{counter}_{name}"
|
name = f"part-{counter}_{name}"
|
||||||
payload = decodeUnknown(part.get_charset(), part.as_bytes()) if part.is_multipart() else part.get_payload(decode=True)
|
payload = decodeUnknown(part.get_charset(), part.as_bytes(
|
||||||
|
)) if part.is_multipart() else part.get_payload(decode=True)
|
||||||
files.append(SimpleUploadedFile(name, payload, mimetypes.guess_type(name)[0]))
|
files.append(SimpleUploadedFile(name, payload, mimetypes.guess_type(name)[0]))
|
||||||
logger.debug("Found MIME attachment %s", name)
|
logger.debug("Found MIME attachment %s", name)
|
||||||
return part_body, part_full_body
|
return part_body, part_full_body
|
||||||
|
Loading…
Reference in New Issue
Block a user