Skip to content

Commit

Permalink
Merge pull request #748 from c2corg/hotfix-create-image
Browse files Browse the repository at this point in the history
hotfix : wrong arguement was sent to image backend
  • Loading branch information
cbeauchesne authored Aug 15, 2019
2 parents f9c5bab + 450bd1b commit 30e2c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2corg_api/views/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def validate_list_associations_create(request, **kwargs):

def create_image(self, document_in):
document = self._create_document(document_in, schema_image)
publish_image_in_backend(self.request, document)
publish_image_in_backend(self.request, document.filename)

return document

Expand Down

0 comments on commit 30e2c96

Please sign in to comment.