diff options
| author | Andrew Fong | 2014-08-16 15:05:46 -0700 |
|---|---|---|
| committer | Andrew Fong | 2014-08-16 15:05:46 -0700 |
| commit | 5f63d31b002020148c526f2d5ec27f723a06f2e9 (patch) | |
| tree | 9037ff7a1467176f50fc73b58b555306c77185f0 /rest_framework/reverse.py | |
| parent | 38a0e3e6278db96660c89bfcb3e660704c068ff5 (diff) | |
| download | django-rest-framework-5f63d31b002020148c526f2d5ec27f723a06f2e9.tar.bz2 | |
override_method should substitute action
A view's action is dependent on the request method. When overriding the method (e.g. to generate a form for a POST request on a GET call to the browseable API), the action should be updated as well. Otherwise, viewset functions may be in a weird limbo state where a 'list' action has a POST method.
Diffstat (limited to 'rest_framework/reverse.py')
0 files changed, 0 insertions, 0 deletions
