From 5640e8490c61e8f363df8dc478f4b3396fa6a435 Mon Sep 17 00:00:00 2001 From: Ross Poulton Date: Mon, 11 Jun 2012 13:40:54 +1000 Subject: [PATCH] Updated SQLite check due to changed Django DB definitions. Fixes #143. --- helpdesk/views/staff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/views/staff.py b/helpdesk/views/staff.py index f021b5ff..31b4766f 100644 --- a/helpdesk/views/staff.py +++ b/helpdesk/views/staff.py @@ -724,7 +724,7 @@ def ticket_list(request): tickets = ticket_paginator.page(ticket_paginator.num_pages) search_message = '' - if context.has_key('query') and settings.DATABASE_ENGINE.startswith('sqlite'): + if context.has_key('query') and settings.DATABASES['default']['ENGINE'].endswith('sqlite'): search_message = _('

Note: Your keyword search is case sensitive because of your database. This means the search will not be accurate. By switching to a different database system you will gain better searching! For more information, read the Django Documentation on string matching in SQLite.')