def initial(self, request, *args, **kwargs):
"""
Call check_method if present and returns parent
"""
if hasattr(self, 'filter_method'):
self.filter_method(request)
return super(GenericViewSet, self).initial(request, args, kwargs)
评论列表
文章目录