title: drf create manytomany fields
body: <p><a href="https://i.stack.imgur.com/vbCQ2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vbCQ2.png" alt="enter image description here" /></a></p>
  <p>models</p>
  <pre class="lang-py prettyprint-override"><code>class CreatorRawArtwork(models.Model):
      id         = models.AutoField(primary_key=True)
      title      = models.CharField(max_length=500)
      descripton = models.TextField()
      editions   = models.IntegerField(null=True, blank=True)
      price      = models.CharField(max_length=500)
      created_at = models.DateTimeField(auto_now_add=True, null=True, blank=True)
      medias     = models.FileField(null=True, blank=True, upload_to=&quot;raw-medias&quot;)
      user       = models.ForeignKey(to=Login, on_delete=models.CASCADE, related_name=&quot;creatorrawartwork&quot;, null=True, blank=True
      )
      collection = models.ForeignKey(
      to=DesignerCollection, on_delete=models.CASCADE, related_name=&quot;creatorrawartwork&quot;, null=True, blank=True)
      categories = models.ManyToManyField(DesignerCategories, related_name='creatorrawartwork')
  
      def __str__(self):
          return self.title
  </code></pre>
  <p>serializer</p>
  <pre class="lang-py prettyprint-override"><code>class CreatorRawArtworkSerializer(serializers.ModelSerializer):
      categories = serializers.PrimaryKeyRelatedField(queryset=DesignerCategories.objects.all(), many=True)
  
      class Meta:
          model = CreatorRawArtwork
          fields = &quot;__all__&quot;
          depth=1
  </code></pre>
  <p>views</p>
  <pre class="lang-py prettyprint-override"><code>class CreatorRawArtworkView(viewsets.ModelViewSet):
      queryset = CreatorRawArtwork.objects.all()
      serializer_class = CreatorRawArtworkSerializer
  </code></pre>
  <p>Here i am trying to create manytomany fields using drf serialier it is showing some error
  plese check the screenshot for parameter and responses</p>
  <p>What can be the issue please take a look</p>