Opened 16 years ago

Closed 16 years ago

#9056 closed (fixed)

POST should be method

Reported by: Andriy Drozdyuk Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In the example code of the Using a model formset in a view where it says:

if request.POST == 'POST':

should really be:

if request.method == 'POST':

Here is the link to the place in the doc:
http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#using-a-model-formset-in-a-view

Change History (1)

comment:1 by Brian Rosner, 16 years ago

Resolution: fixed
Status: newclosed

(In [9015]) Fixed #9056 -- Corrected a typo in topic/forms/modelforms.txt documentation. Thanks drozzy for catching this.

Note: See TracTickets for help on using tickets.
Back to Top