Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#20478 closed New feature (fixed)

Add basic support for HTTP PATCH method in generic views

Reported by: Krzysztof Jurewicz Owned by: Krzysztof Jurewicz
Component: Generic views Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

There is a RFC describing HTTP method named PATCH:

http://tools.ietf.org/html/rfc5789

Quoting that RFC:

The difference between the PUT and PATCH requests is reflected in the
way the server processes the enclosed entity to modify the resource
identified by the Request-URI. In a PUT request, the enclosed entity
is considered to be a modified version of the resource stored on the
origin server, and the client is requesting that the stored version
be replaced. With PATCH, however, the enclosed entity contains a set
of instructions describing how a resource currently residing on the
origin server should be modified to produce a new version.”

Basic PATCH method support can be added to django.views.generic.base.View and django.views.generic.base.RedirectView. Further details and discussion are available on django-developers.

Change History (4)

comment:1 by Krzysztof Jurewicz, 11 years ago

Has patch: set
Triage Stage: UnreviewedAccepted

I’ve created a pull request: https://github.com/django/django/pull/1198. Changing triage stage to “accepted” based on discussion on django-developers.

comment:2 by Tom Christie, 11 years ago

Triage Stage: AcceptedReady for checkin

Looks good to go.

comment:3 by Krzysztof Jurewicz <krzysztof.jurewicz@…>, 11 years ago

Resolution: fixed
Status: newclosed

In ee8b810b977572e39dc6acf4d13cc5e05f4d65ee:

Fixed #20478 – Added support for HTTP PATCH method in generic views.

comment:4 by Russell Keith-Magee <russell@…>, 11 years ago

In 11b06532f7633478b341c9d1da6d29e9839a4e9a:

Merge pull request #1198 from KrzysiekJ/http-patch-method

Fixed #20478 – Added support for HTTP PATCH method in generic views.

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