Opened 17 years ago
Closed 17 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
Note:
See TracTickets
for help on using tickets.
(In [9015]) Fixed #9056 -- Corrected a typo in topic/forms/modelforms.txt documentation. Thanks drozzy for catching this.