Django change foreign key data and save
问题 I have two models like class Reporter(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=30) email = models.EmailField() class Article(models.Model): headline = models.CharField(max_length=100) pub_date = models.DateField() reporter = models.ForeignKey(Reporter, on_delete=models.CASCADE) Now for an object of Article lets say a=Article.objects.filter(id=1) a=a[0] I try to change the headline and the email of the author who has written this