Hopefully the final fix to all our database woes.

bzr-revno: 1820
This commit is contained in:
Raoul Snyman 2011-12-04 20:19:20 +02:00
commit 90d8b211d9
1 changed files with 1 additions and 0 deletions

View File

@ -145,6 +145,7 @@ class OpenLPSongImport(SongImport):
else:
song_props['media_files'] = relation(OldMediaFile,
backref='songs',
foreign_keys=[source_media_files_table.c.song_id],
primaryjoin=source_songs_table.c.id == \
source_media_files_table.c.song_id)
try: