mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-28 17:49:04 +01:00
Updated SQLite check due to changed Django DB definitions. Fixes #143.
This commit is contained in:
parent
aa16eb6ef2
commit
5640e8490c
@ -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 = _('<p><strong>Note:</strong> Your keyword search is case sensitive because of your database. This means the search will <strong>not</strong> be accurate. By switching to a different database system you will gain better searching! For more information, read the <a href="http://docs.djangoproject.com/en/dev/ref/databases/#sqlite-string-matching">Django Documentation on string matching in SQLite</a>.')
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user