type correction
This commit is contained in:
@@ -121,7 +121,7 @@ class Command(BaseCommand):
|
||||
extension = attachment.document.name[-3:].lower()
|
||||
try:
|
||||
message = Message.objects.get(id=attachment.message_id)
|
||||
if mm.encoded:
|
||||
if message.encoded:
|
||||
# if message.text:
|
||||
body = "\n".join(message.text.splitlines())
|
||||
else:
|
||||
|
||||
@@ -8495,6 +8495,7 @@ def workout_upload_view(request,
|
||||
except KeyError:
|
||||
upload_to_tp = False
|
||||
|
||||
response = {}
|
||||
if request.method == 'POST':
|
||||
form = DocumentsForm(request.POST,request.FILES)
|
||||
optionsform = UploadOptionsForm(request.POST)
|
||||
|
||||
Reference in New Issue
Block a user