return f'{self.source} -> {self.book}'
def get_absolute_url(self):
- return reverse('source_book_prepare', args=[self.pk])
+ return reverse('source_book_prepare', args=[self.book.pk])
def get_view_files(self):
# TODO: won't work for PDFs.
if dbook is None:
dbook = DBook.create(
user, texts[0],
+ catalogue_book=book,
title=book.title,
slug=str(uuid.uuid4()),
)