Fixes in imagefield
This commit is contained in:
parent
ecbc9eae71
commit
5459b598cb
2 changed files with 4 additions and 2 deletions
|
|
@ -315,7 +315,7 @@ class AjaxList(SimpleList):
|
||||||
|
|
||||||
for func_field in self.func_fields:
|
for func_field in self.func_fields:
|
||||||
if func_field in row:
|
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)
|
rows.append(row)
|
||||||
#{k:d[k] for in set(d).intersection(l)}
|
#{k:d[k] for in set(d).intersection(l)}
|
||||||
|
|
|
||||||
|
|
@ -245,7 +245,9 @@ class ImageField(CharField):
|
||||||
|
|
||||||
if arr_image[self.name]!=save_file and arr_image[self.name]!='':
|
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
|
self.model.yes_reset_conditions=old_reset
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue