Django

Code

Changeset 3914

Show
Ignore:
Timestamp:
10/23/06 02:51:29 (2 years ago)
Author:
mtredinnick
Message:

Fixed #2931 -- Use request.method == 'POST' where appropriate in the examples.
Thanks, David Schein.

Files:

Legend:

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

    r3883 r3914  
    212212        manipulator = Place.AddManipulator() 
    213213 
    214         if request.POST
     214        if request.method == 'POST'
    215215            # If data was POSTed, we're trying to create a new Place. 
    216216            new_data = request.POST.copy() 
     
    310310        place = manipulator.original_object 
    311311 
    312         if request.POST
     312        if request.method == 'POST'
    313313            new_data = request.POST.copy() 
    314314            errors = manipulator.get_validation_errors(new_data) 
     
    392392    def contact_form(request): 
    393393        manipulator = ContactManipulator() 
    394         if request.POST
     394        if request.method == 'POST'
    395395            new_data = request.POST.copy() 
    396396            errors = manipulator.get_validation_errors(new_data)