title: Method Not Allowed - Django Rest Framework
body: <p>I am getting error while updating. When i add data it is added successfully. This error is only comming for <code>UpdateAPIView</code></p>
  
  <pre><code>{
      "detail": "Method \"POST\" not allowed."
  }
  </code></pre>
  
  <p>urls.py</p>
  
  <pre><code>path('groups/update/&lt;int:pk&gt;', views.GroupsUpdateAPIView.as_view(), name='api_groups_update'),
  </code></pre>
  
  <p>Views.py</p>
  
  <pre><code>class GroupsUpdateAPIView(generics.UpdateAPIView):
      queryset = Groups.objects.all()
      serializer_class = GroupsAddSerialzer
      permission_classes = [UserIsAuthenticated]
  
      def perform_update(self, serializer):
          serializer.save(
              group_updated_by = self.request.auth.application.user,
          )
  </code></pre>
  
  <p>Serializer.py</p>
  
  <pre><code>class GroupsAddSerialzer(serializers.ModelSerializer):
  
      class Meta:
          model = Groups
          fields = ['group_name', 'group_description', 'group_status']
  </code></pre>