From f94f1f3b3ec292cb298185c38b95ce0dfa9db3a4 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 17 Jan 2016 23:45:52 +0300 Subject: [PATCH] Add more indices --- m_librarian/db.py | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.39.5