Fixes in imagefield

This commit is contained in:
Antonio de la Rosa 2019-08-15 00:11:56 +02:00
parent ecbc9eae71
commit 5459b598cb
2 changed files with 4 additions and 2 deletions

View file

@ -315,7 +315,7 @@ class AjaxList(SimpleList):
for func_field in self.func_fields:
if func_field in row:
row[func_field]=self.func_fields[func_field](row[func_field])
row[func_field]=self.func_fields[func_field](row[func_field], row)
rows.append(row)
#{k:d[k] for in set(d).intersection(l)}

View file

@ -245,7 +245,9 @@ class ImageField(CharField):
if arr_image[self.name]!=save_file and arr_image[self.name]!='':
os.remove(arr_image[self.name])
if os.path.isfile(arr_image[self.name]):
os.remove(arr_image[self.name])
self.model.yes_reset_conditions=old_reset