Set publisher name for edition

pull/1/head
Raymond Yee 2014-07-25 15:16:06 -07:00
parent 307db5a995
commit 440b352fff
1 changed files with 2 additions and 5 deletions

View File

@ -77,12 +77,9 @@ def attach_more_doab_metadata(ebook, description, subjects,
edition.publication_date = publication_date edition.publication_date = publication_date
edition_to_save = True edition_to_save = True
# TO DO: insert publisher name properly
# PublisherName.name is not unique at the moment (contrary to what I thought)
# if edition.publisher_name is empty, set it # if edition.publisher_name is empty, set it
#if not edition.publisher_name: if not edition.publisher_name:
# edition.publisher_name = models.PublisherName.objects.get_or_create(name=publisher_name)[0] edition.set_publisher(publisher_name)
# edition_to_save = True
if edition_to_save: if edition_to_save:
edition.save() edition.save()