Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #312 -- Fixed bug when adding images in the admin when edit_inl…

…ine and width field is set. Thanks, nichyoung

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1104 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 029257874572c23455c66d2a9289df930c25c515 1 parent 4947ae4
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/meta/__init__.py
View
2  django/core/meta/__init__.py
@@ -1567,7 +1567,7 @@ def manipulator_save(opts, klass, add, change, self, new_data):
# Save any uploaded files.
for f in rel_opts.fields:
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.
if change:
Please sign in to comment.
Something went wrong with that request. Please try again.