X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e23ceedf469dc115c335f497c6c3e0834cda0ebc..454635a6a1b93154e38eb761ac1e7e403f165a81:/src/catalogue/models.py diff --git a/src/catalogue/models.py b/src/catalogue/models.py index 8db23ab3..e2d737a2 100644 --- a/src/catalogue/models.py +++ b/src/catalogue/models.py @@ -198,6 +198,9 @@ class NotableBook(OrderableModel): author = models.ForeignKey(Author, models.CASCADE) book = models.ForeignKey('Book', models.CASCADE) + def __str__(self): + return self.book.title + class Category(WikidataModel): name = models.CharField(_("name"), max_length=255)