Opened 6 years ago

Closed 6 years ago

#9056 closed (fixed)

POST should be method

Reported by: drozzy 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 6 years ago by brosner

  • Resolution set to fixed
  • Status changed from new to closed

(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