diff options
| author | Joseph Kocherhans <joseph@jkocherhans.com> | 2006-06-19 15:23:57 +0000 |
|---|---|---|
| committer | Joseph Kocherhans <joseph@jkocherhans.com> | 2006-06-19 15:23:57 +0000 |
| commit | adf4b9311d5d64a2bdd58da50271c121ea22e397 (patch) | |
| tree | a69b3b023595cf1ce67a14c4c1ecd3290d94088e /django/views/generic/create_update.py | |
| parent | e976ed1f7910fad03704f88853c5c5b36cbab134 (diff) | |
multi-auth: Merged to [3151]archive/attic/multi-auth
git-svn-id: http://code.djangoproject.com/svn/django/branches/multi-auth@3152 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/views/generic/create_update.py')
| -rw-r--r-- | django/views/generic/create_update.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/views/generic/create_update.py b/django/views/generic/create_update.py index 0804cdf30b..c6d7db7af5 100644 --- a/django/views/generic/create_update.py +++ b/django/views/generic/create_update.py @@ -106,6 +106,8 @@ def update_object(request, model, object_id=None, slug=None, if request.POST: new_data = request.POST.copy() + if model._meta.has_field_type(FileField): + new_data.update(request.FILES) errors = manipulator.get_validation_errors(new_data) manipulator.do_html2python(new_data) if not errors: |
