Only use get_or_create_book with remote_id
This commit is contained in:
parent
0f579e7d8d
commit
35ca61d7f6
7 changed files with 15 additions and 39 deletions
|
@ -12,7 +12,6 @@ from django.views.decorators.csrf import csrf_exempt
|
|||
from fedireads import activitypub, outgoing
|
||||
from fedireads import forms, models, books_manager
|
||||
from fedireads import goodreads_import
|
||||
from fedireads.books_manager import get_or_create_book
|
||||
from fedireads.tasks import app
|
||||
|
||||
|
||||
|
@ -470,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 = get_or_create_book(book_id)
|
||||
book = models.Book.objects.get(id=book_id)
|
||||
if not book.description:
|
||||
book.description = book.parent_work.description
|
||||
data = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue