Fixed #312 -- Fixed bug when adding images in the admin when edit_inline and width field is set. Thanks, nichyoung
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1104 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4947ae42b8
commit
0292578745
|
@ -1567,7 +1567,7 @@ def manipulator_save(opts, klass, add, change, self, new_data):
|
||||||
# Save any uploaded files.
|
# Save any uploaded files.
|
||||||
for f in rel_opts.fields:
|
for f in rel_opts.fields:
|
||||||
if isinstance(f, FileField) and rel_new_data.get(f.name, False):
|
if isinstance(f, FileField) and rel_new_data.get(f.name, False):
|
||||||
f.save_file(rel_new_data, new_rel_obj, change and old_rel_obj or None, change, rel=True)
|
f.save_file(rel_new_data, new_rel_obj, change and old_rel_obj or None, old_rel_obj is not None, rel=True)
|
||||||
|
|
||||||
# Calculate whether any fields have changed.
|
# Calculate whether any fields have changed.
|
||||||
if change:
|
if change:
|
||||||
|
|
Loading…
Reference in New Issue