Update openlibrary author with ISNI
This commit is contained in:
parent
d7e4e6aa1e
commit
4085714764
8 changed files with 43 additions and 15 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue