thumbnails/files.py
def _refresh_cache(self):
        """Populate self._thumbnails."""
        self._thumbnails = {}
        metadatas = self.metadata_backend.get_thumbnails(self.source_image.name)
        for metadata in metadatas:
            self._thumbnails[metadata.size] = Thumbnail(metadata=metadata, storage=self.storage)
def _refresh_cache(self):
        """Populate self._thumbnails."""
        self._thumbnails = {}
        metadatas = self.metadata_backend.get_thumbnails(self.source_image.name)
        for metadata in metadatas:
            self._thumbnails[metadata.size] = Thumbnail(metadata=metadata, storage=self.storage)
def _refresh_cache ( self ) : self . _thumbnails = { } metadatas = self . metadata_backend . get_thumbnails ( self . source_image . name ) for metadata in metadatas : self . _thumbnails [ metadata . size ] = Thumbnail ( metadata = metadata , storage = self . storage )
Populate self._thumbnails.
Populate self . _thumbnails .