Code

Opened 11 months ago

Closed 11 months ago

Last modified 11 months ago

#20478 closed New feature (fixed)

Add basic support for HTTP PATCH method in generic views

Reported by: KJ Owned by: KJ
Component: Generic views Version: master
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.

Attachments (0)

Change History (4)

comment:1 Changed 11 months ago by KJ

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

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 Changed 11 months ago by tomchristie

  • Triage Stage changed from Accepted to Ready for checkin

Looks good to go.

comment:3 Changed 11 months ago by Krzysztof Jurewicz <krzysztof.jurewicz@…>

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

In ee8b810b977572e39dc6acf4d13cc5e05f4d65ee:

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

comment:4 Changed 11 months ago by Russell Keith-Magee <russell@…>

In 11b06532f7633478b341c9d1da6d29e9839a4e9a:

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

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.