From: Oleg Broytman Date: Sun, 17 Jan 2016 20:45:52 +0000 (+0300) Subject: Add more indices X-Git-Tag: 0.0.4~58 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=f94f1f3b3ec292cb298185c38b95ce0dfa9db3a4;p=m_librarian.git Add more indices --- diff --git a/m_librarian/db.py b/m_librarian/db.py index 93787c7..9985eb9 100755 --- a/m_librarian/db.py +++ b/m_librarian/db.py @@ -91,8 +91,13 @@ class Book(SQLObject): language = ForeignKey('Language') title_idx = DatabaseIndex(title) series_idx = DatabaseIndex(series) + ser_no_idx = DatabaseIndex(ser_no) archive_file_idx = DatabaseIndex(archive, file, unique=True) + file_idx = DatabaseIndex(file) + size_idx = DatabaseIndex(size) + deleted_idx = DatabaseIndex(deleted) extension_idx = DatabaseIndex(extension) + date_idx = DatabaseIndex(date) language_idx = DatabaseIndex(language)