Skip to content

Commit 95aaa27

Browse files
committed
Fix flake error
1 parent 752815d commit 95aaa27

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

django_project/changes/models/version.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ def save(self, *args, **kwargs):
110110
# new), or when a thumbnail is missing for an existing image.
111111
if self.image_file:
112112
needs_thumb = (
113-
old_image_name != self.image_file.name
114-
or not self.image_file_thumbnail
113+
old_image_name != self.image_file.name or not self.image_file_thumbnail
115114
)
116115
if needs_thumb:
117116
self._generate_thumbnail()

0 commit comments

Comments
 (0)