remove outdated tests
This commit is contained in:
parent
dd985094a5
commit
641ac22786
3 changed files with 5 additions and 47 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue