mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-05-18 09:31:08 +00:00
Convert to boolean
This commit is contained in:
parent
70ff6dc788
commit
1e129c5b70
1 changed files with 2 additions and 1 deletions
|
|
@ -86,4 +86,5 @@ class Simple(CachedFileBackend):
|
||||||
self.set_state(file, CacheFileState.EXISTS)
|
self.set_state(file, CacheFileState.EXISTS)
|
||||||
|
|
||||||
def _exists(self, file):
|
def _exists(self, file):
|
||||||
return getattr(file, '_file', None) or file.storage.exists(file.name)
|
return bool(getattr(file, '_file', None)
|
||||||
|
or file.storage.exists(file.name))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue