mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-14 05:36:50 +03:00
parent
02eeb6fa00
commit
f378f98a40
|
@ -142,7 +142,7 @@ def action(methods=None, detail=None, url_path=None, url_name=None, **kwargs):
|
||||||
how the `@renderer_classes` etc. decorators work for function-
|
how the `@renderer_classes` etc. decorators work for function-
|
||||||
based API views.
|
based API views.
|
||||||
"""
|
"""
|
||||||
methods = ['get'] if (methods is None) else methods
|
methods = ['get'] if methods is None else methods
|
||||||
methods = [method.lower() for method in methods]
|
methods = [method.lower() for method in methods]
|
||||||
|
|
||||||
assert detail is not None, (
|
assert detail is not None, (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user