Skip to content

Commit

Permalink
Ensuring new images are handled correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
respondcreate committed Apr 6, 2015
1 parent beb8053 commit 25b5796
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion versatileimagefield/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def to_python(self, data):
ImageField
"""
if data is not None:
data.open()
if hasattr(data, 'open'):
data.open()
return super(VersatileImageFormField, self).to_python(data)


Expand Down

0 comments on commit 25b5796

Please sign in to comment.