Django

Code

Changeset 4495

Show
Ignore:
Timestamp:
02/12/07 23:02:47 (2 years ago)
Author:
mtredinnick
Message:

Fixed #3005 -- Applied trivial docs patch for "oldforms" use of do_html2python.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/forms.txt

    r4420 r4495  
    174174        # Check for validation errors 
    175175        errors = manipulator.get_validation_errors(new_data) 
     176        manipulator.do_html2python(new_data) 
    176177        if errors: 
    177178            return render_to_response('places/errors.html', {'errors': errors}) 
    178179        else: 
    179             manipulator.do_html2python(new_data) 
    180180            new_place = manipulator.save(new_data) 
    181181            return HttpResponse("Place created: %s" % new_place) 
     
    230230            # Check for errors. 
    231231            errors = manipulator.get_validation_errors(new_data) 
     232            manipulator.do_html2python(new_data) 
    232233 
    233234            if not errors: 
    234235                # No errors. This means we can save the data! 
    235                 manipulator.do_html2python(new_data) 
    236236                new_place = manipulator.save(new_data) 
    237237 
     
    325325            new_data = request.POST.copy() 
    326326            errors = manipulator.get_validation_errors(new_data) 
     327            manipulator.do_html2python(new_data) 
    327328            if not errors: 
    328                 manipulator.do_html2python(new_data) 
    329329                manipulator.save(new_data) 
    330330 
     
    407407            new_data = request.POST.copy() 
    408408            errors = manipulator.get_validation_errors(new_data) 
     409            manipulator.do_html2python(new_data) 
    409410            if not errors: 
    410                 manipulator.do_html2python(new_data) 
    411411 
    412412                # Send e-mail using new_data here...