Django viewset has not attribute ‘get_extra_actions’

You’ve called it a viewset, but that doesn’t make it one; you inherit from APIView which is a standalone generic view, not a viewset.

A viewset needs to inherit from viewsets.ViewSet.

Leave a Comment