remove outdated tests

This commit is contained in:
Mouse Reeve
2020-11-24 16:26:28 -08:00
parent dd985094a5
commit 641ac22786
3 changed files with 5 additions and 47 deletions

View File

@ -230,6 +230,8 @@ def image_attachments_formatter(images_json):
caption = image.get('name')
attachment = models.Attachment(caption=caption)
image_field = image_formatter(image)
if not image_field:
continue
attachment.image.save(*image_field, save=False)
attachments.append(attachment)
return attachments