From 33744cc8c4708400ebdf11768c6871bda2b641a8 Mon Sep 17 00:00:00 2001 From: Michiya Takahashi Date: Thu, 29 Mar 2018 01:11:12 +0900 Subject: [PATCH] add suppported feature --- sql_server/pyodbc/features.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sql_server/pyodbc/features.py b/sql_server/pyodbc/features.py index 2e27e3e5..18945f4d 100644 --- a/sql_server/pyodbc/features.py +++ b/sql_server/pyodbc/features.py @@ -1,8 +1,3 @@ -try: - import pytz -except ImportError: - pytz = None - from django.db.backends.base.features import BaseDatabaseFeatures @@ -18,7 +13,8 @@ class DatabaseFeatures(BaseDatabaseFeatures): has_real_datatype = True has_select_for_update = True has_select_for_update_nowait = True - has_zoneinfo_database = pytz is not None + has_select_for_update_skip_locked = True + has_zoneinfo_database = False ignores_table_name_case = True ignores_quoted_identifier_case = True requires_literal_defaults = True