Update openlibrary author with ISNI
This commit is contained in:
@ -55,7 +55,7 @@ from .imports.manually_review import (
|
||||
)
|
||||
|
||||
# misc views
|
||||
from .author import Author, EditAuthor
|
||||
from .author import Author, EditAuthor, update_author_from_remote
|
||||
from .directory import Directory
|
||||
from .discover import Discover
|
||||
from .feed import DirectMessage, Feed, Replies, Status
|
||||
|
@ -86,7 +86,7 @@ def update_author_from_remote(request, author_id, connector_identifier):
|
||||
connector = connector_manager.load_connector(
|
||||
get_object_or_404(models.Connector, identifier=connector_identifier)
|
||||
)
|
||||
author = get_object_or_404(models.Book.objects.select_subclasses(), id=author_id)
|
||||
author = get_object_or_404(models.Author, id=author_id)
|
||||
|
||||
connector.update_author_from_remote(author)
|
||||
|
||||
|
Reference in New Issue
Block a user