Fix table for null fields

This commit is contained in:
Tim Bentley 2009-09-24 05:48:12 +01:00
parent 7f5ad5df7a
commit 9df75953b3
2 changed files with 3 additions and 3 deletions

View File

@ -33,6 +33,6 @@ audit_table = Table(u'audit_data', metadata,
Column(u'audittime', types.Time, index=True, nullable=False),
Column(u'title', types.Unicode(255), nullable=False),
Column(u'authors', types.Unicode(255), nullable=False),
Column(u'copyright', types.Unicode(255), nullable=False),
Column(u'ccl_number', types.Unicode(65), nullable=False)
Column(u'copyright', types.Unicode(255)),
Column(u'ccl_number', types.Unicode(65))
)

View File

@ -308,5 +308,5 @@ class SongMediaItem(MediaManagerItem):
raw_footer.append(unicode(
translate(u'SongMediaItem', u'CCL Licence: ') + ccl))
service_item.raw_footer = raw_footer
service_item.audit = [service_item.title, author_audit,song.copyright, unicode(song.ccli_number)]
service_item.audit = [song.title, author_audit, song.copyright, song.ccli_number]
return True