Browse Source

Use v9 ormcache.

12.0-mig-module_prototyper_last
Jairo Llopis 9 years ago
committed by Vladislav Shepilov
parent
commit
92b4bfb176
  1. 2
      base_multi_image/models/image.py

2
base_multi_image/models/image.py

@ -116,7 +116,7 @@ class Image(models.Model):
return self._get_image_from_url_cached(self.url)
@api.model
@tools.ormcache(skiparg=1)
@tools.ormcache("url")
def _get_image_from_url_cached(self, url):
"""Allow to download an image and cache it by its URL."""
if url:

Loading…
Cancel
Save