This commit is contained in:
Mouse Reeve 2020-03-27 18:36:45 -07:00
parent ed6fd6d48e
commit 7f82546230
4 changed files with 2 additions and 4 deletions

View file

@ -76,7 +76,6 @@ class Connector(AbstractConnector):
key = data.get('works')[0]['key']
key = key.split('/')[-1]
work = self.get_or_create_book(key)
h
book.parent_work = work

View file

@ -1,3 +1,3 @@
''' settings book data connectors '''
CONNECTORS = ['openlibrary', 'fedireads']
CONNECTORS = ['openlibrary', 'fedireads_connector']

View file

@ -84,7 +84,6 @@ class Book(FedireadsModel):
through='ShelfBook',
through_fields=('book', 'shelf')
)
# TODO: why can't I just call this work????
parent_work = models.ForeignKey('Work', on_delete=models.PROTECT, null=True)
objects = InheritanceManager()

View file

@ -22,7 +22,7 @@ Connector.objects.create(
Connector.objects.create(
identifier=DOMAIN,
connector_file='fedireads',
connector_file='fedireads_connector',
base_url='https://%s/book' % DOMAIN,
covers_url='https://%s/images/covers' % DOMAIN,
search_url='https://%s/search?q=' % DOMAIN,