Fix v2 song DB importing

This commit is contained in:
Jon Tibble 2010-07-21 13:11:32 +01:00
parent 42619d455b
commit cf02c71001
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ class OpenLPSongImport(object):
else:
new_song.authors.append(Author.populate(
display_name=u'Author Unknown'))
if song.song_book_id != 0:
if song.book:
existing_song_book = self.master_manager.get_object_filtered(
Book, Book.name == song.book.name)
if existing_song_book: