X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3b432b134c57aad46da1eadebc31f01d35368719..255163c6500ae808b053178545431da27576715d:/apps/catalogue/views.py diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index 79faca7a4..d74ca7544 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -326,7 +326,7 @@ def _sqlite_word_starts_with(name, prefix): return Q(**kwargs) -if settings.DATABASE_ENGINE == 'sqlite3': +if settings.DATABASES['default']['ENGINE'] == 'django.db.backends.sqlite3': _word_starts_with = _sqlite_word_starts_with