<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_view_method(self, request):
 """Get view method."""

        if hasattr(self, 'action'):
            return self.action if self.action else None
        return request.method.lower()