1 | Index: django/core/meta/__init__.py
|
---|
2 | ===================================================================
|
---|
3 | --- django/core/meta/__init__.py (revision 492)
|
---|
4 | +++ django/core/meta/__init__.py (working copy)
|
---|
5 | @@ -1485,7 +1488,7 @@
|
---|
6 | # Save any uploaded files.
|
---|
7 | for f in rel_opts.fields:
|
---|
8 | if isinstance(f, FileField) and rel_new_data.get(f.name, False):
|
---|
9 | - f.save_file(rel_new_data, new_rel_obj, change and old_rel_obj or None, change, rel=True)
|
---|
10 | + f.save_file(rel_new_data, new_rel_obj, change and old_rel_obj or None, old_rel_obj is not None, rel=True)
|
---|
11 |
|
---|
12 | # Calculate whether any fields have changed.
|
---|
13 | if change:
|
---|