moan0s / ILMO2

Intelligent Library Management Online - A simple Web-App for the organization of a library, the users, books, opening hours and lendings.
https://ilmo2.readthedocs.io/en/latest/
GNU General Public License v3.0
7 stars 2 forks source link

Book repr fails in tests when self.author.all() is called #36

Closed moan0s closed 2 years ago

moan0s commented 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"
moan0s commented 2 years ago

When solved add author to book string representation