Skip to content

Commit 2afb80e

Browse files
author
Victor Tsang
committed
fixed proper boolean check
1 parent 4e2751e commit 2afb80e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aurora_dsql_django/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __init__(self, *args, **kwargs):
6060
databases = settings.DATABASES
6161

6262
for db_name, db_config in databases.items():
63-
if db_config.get("ENGINE") == "aurora_dsql_django" and db_config.get("ENABLE_ID_GENERATION_FOR_AUTO_FIELDS") == True :
63+
if db_config.get("ENGINE") == "aurora_dsql_django" and db_config.get("ENABLE_ID_GENERATION_FOR_AUTO_FIELDS") is True :
6464
# patch AutoFields to get default value from generator functions
6565
patch_autofield(AutoField, uuid_to_int32)
6666
patch_autofield(BigAutoField, uuid_to_int64)

0 commit comments

Comments
 (0)