0001-misc-ignore-name-argument-for-compatibility-with-DRF.patch
src/authentic2/compat/drf.py | ||
---|---|---|
21 | 21 |
from rest_framework.decorators import list_route, detail_route |
22 | 22 | |
23 | 23 |
def action(**kwargs): |
24 |
kwargs.pop('name', None) |
|
24 | 25 |
if kwargs.pop('detail'): |
25 | 26 |
return detail_route(**kwargs) |
26 | 27 |
else: |
27 |
- |