Skip to content
Browse files

Fixed #2147: file uploads within the update_object generic view now w…

…orks. Thanks, parlar.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 15437d7 commit efcb5912e467ab14435a417412754a234e436f73 @jacobian jacobian committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 django/views/generic/
2 django/views/generic/
@@ -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)
if not errors:

0 comments on commit efcb591

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