]> git.phdru.name Git - m_librarian.git/blobdiff - m_librarian/db.py
Search genres by name and title
[m_librarian.git] / m_librarian / db.py
index c06fab81b6e3858ec1b72956b21a490bf3bdfeb7..771fd57270a18a33b1a95bddb76d37cbc75cce7a 100755 (executable)
@@ -82,7 +82,7 @@ class Extension(SQLObject):
 
 
 class Genre(SQLObject):
-    name = StringCol(notNull=True, unique=True)
+    name = UnicodeCol(notNull=True, unique=True)
     title = UnicodeCol(notNull=True)
     count = IntCol(notNull=True)
     books = RelatedJoin('Book', otherColumn='book_id',