Opened 2 years ago

Closed 2 years ago

Last modified 2 years 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


There is a RFC describing HTTP method named PATCH:

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 Changed 2 years 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: Changing triage stage to “accepted” based on discussion on django-developers.

comment:2 Changed 2 years ago by tomchristie

  • Triage Stage changed from Accepted to Ready for checkin

Looks good to go.

comment:3 Changed 2 years 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 2 years 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.

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