Django

Code

Changeset 3123

Show
Ignore:
Timestamp:
06/13/06 16:47:40 (2 years ago)
Author:
jacob
Message:

Fixed #2147: file uploads within the update_object generic view now works. Thanks, parlar.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/views/generic/create_update.py

    r3070 r3123  
    107107    if request.POST: 
    108108        new_data = request.POST.copy() 
     109        if model._meta.has_field_type(FileField):  
     110            new_data.update(request.FILES) 
    109111        errors = manipulator.get_validation_errors(new_data) 
    110112        manipulator.do_html2python(new_data)