diff --git a/rest_framework/routers.py b/rest_framework/routers.py index fa5d16922..3011026fa 100644 --- a/rest_framework/routers.py +++ b/rest_framework/routers.py @@ -231,7 +231,7 @@ class SimpleRouter(BaseRouter): """ bound_methods = {} for method, action in method_map.items(): - if hasattr(viewset, action): + if getattr(viewset, action, None) is not None: bound_methods[method] = action return bound_methods