Linked Questions

Popular Questions

Why we use super().perform_update(serializer)? But not serializer.save() ? What's the difference?

def perform_update(self, serializer):
        if serializer.instance.author != self.request.user:
            raise PermissionDenied('–°hange other people\'s content forbidden')
        super(PostViewSet, self).perform_update(serializer)
        #serializer.save()


Related Questions