how i can make a copy from both blog and comments in django?
问题 I want to make a copy from my blog object and its comment. i write some code and it works for blog instance but does not copy its comments. This is my model: class Blog(models.Model): title = models.CharField(max_length=250) body = models.TextField() author = models.ForeignKey(Author, on_delete=models.CASCADE) date_created = models.DateTimeField(auto_now_add=True) class Comment(models.Model): blog = models.ForeignKey(Blog, on_delete=models.CASCADE) text = models.CharField(max_length=500) and