Document support for http.HTTPMethod in the @action decorator added in Python 3.11. by pavelkraleu · Pull Request #9067 · encode/django-rest-framework (original) (raw)

This pull request ensures that the http.HTTPMethod added in Python 3.11 is fully supported in the @action decorator, as mentioned in issue #8995.

Description

Only one test and documentation update is needed, since http.HTTPMethod already functions as is.

The reason for this is that @action already invokes lower() on each method, which converts http.HTTPMethod to a str a format that is already supported.

action