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)
class Genre(Category):
+ thema = models.CharField(
+ max_length=32, blank=True,
+ help_text='OdpowiadajÄ…cy kwalifikator Thema.'
+ )
plural = models.CharField(
'liczba mnoga', max_length=255, blank=True,
)