Browse Source

Use v9 ormcache.

pull/505/head
Jairo Llopis 8 years ago
committed by Pedro M. Baeza
parent
commit
58f8b449b9
  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