X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/4b4e3aa4d7f75f4bee66b3f3098cbeb756adb8d0..bf3f18ce9313f4929ff327fbf12803157de171cb:/apps/catalogue/models/book.py diff --git a/apps/catalogue/models/book.py b/apps/catalogue/models/book.py index bfc9ec4f5..5f68e09ff 100644 --- 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') - ancestor = models.ManyToManyField('self', blank=True, null=True, + ancestor = models.ManyToManyField('self', blank=True, editable=False, related_name='descendant', symmetrical=False) objects = models.Manager()