title: Can you get the request method in a DRF ModelViewSet?
body: <p>I am building a Django chat app that uses Django Rest Framework. I created a MessageViewSet that extends ModelViewSet to show all of the message objects:</p>
  <pre class="lang-py prettyprint-override"><code>class MessageViewSet(ModelViewSet):
      queryset = Message.objects.all()
      serializer_class = MessageSerializer
  </code></pre>
  <p>This chat app also uses Channels and when a user sends a POST request, I would like to do something channels-realted, but I can't find a way to see what kind of request is made. Is there any way to access the request method in a ModelViewSet?</p>