Ticket #2147: upload.diff

File upload.diff, 539 bytes (added by parlar@…, 18 years ago)

Fix to create_update.py

  • django/views/generic/create_update.py

     
    106106
    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)
    111113        if not errors:
Back to Top