[pap] fix image retrieving
This commit is contained in:
parent
ce7e019e9a
commit
04220ca44d
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue