fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
genre-thema mapping
[redakcja.git]
/
src
/
catalogue
/
models.py
diff --git
a/src/catalogue/models.py
b/src/catalogue/models.py
index
8db23ab
..
04bbf85
100644
(file)
--- 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)
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 Category(WikidataModel):
name = models.CharField(_("name"), max_length=255)
@@
-227,6
+230,10
@@
class Epoch(Category):
class Genre(Category):
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,
)
plural = models.CharField(
'liczba mnoga', max_length=255, blank=True,
)