Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Holovaty authored November 06, 2005

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/core/meta/__init__.py
2  django/core/meta/__init__.py
@@ -1567,7 +1567,7 @@ def manipulator_save(opts, klass, add, change, self, new_data):
1567 1567
                 # Save any uploaded files.
1568 1568
                 for f in rel_opts.fields:
1569 1569
                     if isinstance(f, FileField) and rel_new_data.get(f.name, False):
1570  
-                        f.save_file(rel_new_data, new_rel_obj, change and old_rel_obj or None, change, rel=True)
  1570
+                        f.save_file(rel_new_data, new_rel_obj, change and old_rel_obj or None, old_rel_obj is not None, rel=True)
1571 1571
 
1572 1572
                 # Calculate whether any fields have changed.
1573 1573
                 if change:

0 notes on commit 0292578

Please sign in to comment.
Something went wrong with that request. Please try again.