Adds helper function for loading editions
This commit is contained in:
parent
e11e1cc560
commit
d8aadb4587
4 changed files with 14 additions and 8 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue