Closed moan0s closed 2 years ago
class Book(models.Model): def __str__(self): author_list = [str(a) for a in self.author.all()] # author_names = ', '.join(author_list) return f"{self.title} by Jane Doe"
When solved add author to book string representation