forked from mirrors/bookwyrm
Remove references to source_url
This commit is contained in:
parent
3a4a194160
commit
b8568a76c8
3 changed files with 2 additions and 5 deletions
|
@ -17,8 +17,6 @@ def get_book(book):
|
||||||
'physical_format',
|
'physical_format',
|
||||||
'misc_identifiers',
|
'misc_identifiers',
|
||||||
|
|
||||||
'source_url',
|
|
||||||
|
|
||||||
'description',
|
'description',
|
||||||
'languages',
|
'languages',
|
||||||
'series',
|
'series',
|
||||||
|
|
|
@ -61,8 +61,8 @@ class Connector(AbstractConnector):
|
||||||
}
|
}
|
||||||
book = update_from_mappings(book, data, mappings)
|
book = update_from_mappings(book, data, mappings)
|
||||||
|
|
||||||
if not book.source_url:
|
if not book.remote_id:
|
||||||
book.source_url = response.url
|
book.remote_id = response.url
|
||||||
if not book.connector:
|
if not book.connector:
|
||||||
book.connector = self.connector
|
book.connector = self.connector
|
||||||
book.save()
|
book.save()
|
||||||
|
|
|
@ -109,7 +109,6 @@ class EditionForm(ModelForm):
|
||||||
'subjects',# TODO
|
'subjects',# TODO
|
||||||
'subject_places',# TODO
|
'subject_places',# TODO
|
||||||
|
|
||||||
'source_url',
|
|
||||||
'connector',
|
'connector',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue