Opened 14 years ago

Closed 14 years ago

#15262 closed (duplicate)

generic views don't populate request.POST when handling PUT

Reported by: kenth Owned by: nobody
Component: Core (Other) Version: dev
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

The new CBVs handle PUT as a synonym for POST, but django.http doesn't populate the request.POST & request.FILES for any verb except POST. I believe that PUT is being translated as an empty POST, which is not what I would have expected.

The CBV handling of PUT is in several places in django/views/generic/edit.py both in redirecting the put method definition and the get_form_kwargs() method.

Change History (2)

comment:1 by kenth, 14 years ago

Version: 1.2SVN

comment:2 by Russell Keith-Magee, 14 years ago

Component: Generic viewsCore framework
Resolution: duplicate
Status: newclosed

This isn't a generic view problem -- it's more fundamental than that. Django's HTTP handler doesn't contain good support for HTTP verbs that aren't GET or PUT.

This has been reported in the past as #12635.

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