1
0
Fork 0

Adds helper function for loading editions

This commit is contained in:
Mouse Reeve 2020-05-10 18:08:18 -07:00
parent e11e1cc560
commit d8aadb4587
4 changed files with 14 additions and 8 deletions

View file

@ -469,7 +469,7 @@ def book_page(request, book_id, tab='friends'):
@login_required
def edit_book_page(request, book_id):
''' info about a book '''
book = models.Book.objects.get(id=book_id)
book = books_manager.get_edition(book_id)
if not book.description:
book.description = book.parent_work.description
data = {