fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changes from server
[wolnelektury.git]
/
apps
/
catalogue
/
models
/
book.py
diff --git
a/apps/catalogue/models/book.py
b/apps/catalogue/models/book.py
index
bfc9ec4
..
5f68e09
100644
(file)
--- a/
apps/catalogue/models/book.py
+++ b/
apps/catalogue/models/book.py
@@
-71,7
+71,7
@@
class Book(models.Model):
parent = models.ForeignKey('self', blank=True, null=True,
related_name='children')
parent = models.ForeignKey('self', blank=True, null=True,
related_name='children')
- ancestor = models.ManyToManyField('self', blank=True,
null=True,
+ ancestor = models.ManyToManyField('self', blank=True,
editable=False, related_name='descendant', symmetrical=False)
objects = models.Manager()
editable=False, related_name='descendant', symmetrical=False)
objects = models.Manager()