X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/4b4e3aa4d7f75f4bee66b3f3098cbeb756adb8d0..3306216e9d0c249c2699275aad212a7c4c3cc4a7:/apps/catalogue/models/book.py?ds=sidebyside 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()