2👍
✅
The actions
argument to the ViewSet
is a dict, all methods go in that dict:
get_picks = PickViewset.as_view({
'get': 'update_picks',
'post': 'update_picks',
})
Source:stackexchange.com