Skip to content

Commit

Permalink
Merge pull request #7 from polinom/master
Browse files Browse the repository at this point in the history
Fix delete method to work properly with amazon s3 sorage system. + Add checkbox in admin.
  • Loading branch information
petry committed Oct 29, 2013
2 parents 7af47a4 + e659825 commit a60b454
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion photologue/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def delete(self):
# http://haineault.com/blog/147/
# The data loss scenarios mentioned in the docs hopefully do not apply
# to Photologue!
self.image.storage.delete(self.image)
self.image.storage.delete(self.image.name)
super(ImageModel, self).delete()


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
</a>

<div class="photo-label">
<input class="action-select" name="_selected_action" type="checkbox" value="{{ c.pk }}">
<a href="{{ c.pk }}/">
{{ c.title }}
</a>
Expand Down

0 comments on commit a60b454

Please sign in to comment.