Opened 8 years ago

Closed 8 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:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:

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 Changed 8 years ago by Brian Rosner

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