class Song(models.Model):
name_song = models.CharField(max_length=30)
...
musician = models.ManyToManyField(Musician)
def __str__(self):
return self.name_song
def __str__(self):
return '%s - %s' % (', '.join(map(str, self.musician.all())), self.name_song)