misc: ignore name argument for compatibility with DRF==3.4 (#49110)
gitea/authentic/pipeline/head Build started...
Details
gitea/authentic/pipeline/head Build started...
Details
This commit is contained in:
parent
ebfbd66552
commit
3a596034fa
|
@ -21,6 +21,7 @@ except ImportError:
|
|||
from rest_framework.decorators import list_route, detail_route
|
||||
|
||||
def action(**kwargs):
|
||||
kwargs.pop('name', None)
|
||||
if kwargs.pop('detail'):
|
||||
return detail_route(**kwargs)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue