[pap] fix image retrieving

This commit is contained in:
Bezleputh 2014-10-11 13:47:04 +02:00 committed by Florent Fourcot
commit 04220ca44d

View file

@ -63,7 +63,7 @@ class PapModule(Module, CapHousing):
def fill_photo(self, photo, fields):
if 'data' in fields and photo.url and not photo.data:
photo.data = self.browser.readurl(photo.url)
photo.data = self.browser.open(photo.url).content
return photo
OBJECTS = {Housing: fill_housing,