user_image
By  用户7550231909    On   2021年1月22日 20:18

原文: on_delete=models.RESTRICT >>> song_one = Song.objects.create(artist=artist_one, album=album_one) >>> song_two = Song.objects.create(artist=artist_one, album=album_two) 这个关键字的作用应该是没问题的,亲测。博主的例子中song_two也是调用的artist_one