summaryrefslogtreecommitdiff
path: root/django/db/backends/mysql/operations.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2021-01-13 21:28:09 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-01-14 17:50:04 +0100
commitd992f4e3c29a81c956d3d616f0bc19701431b26e (patch)
tree3eebb321ef640126a8a1ad6c9f6273a73dc57463 /django/db/backends/mysql/operations.py
parent06eec3197009b88e3a633128bbcbd76eea0b46ff (diff)
downloaddjango-d992f4e3c29a81c956d3d616f0bc19701431b26e.tar.gz
Refs #31369 -- Removed models.NullBooleanField per deprecation timeline.
Diffstat (limited to 'django/db/backends/mysql/operations.py')
-rw-r--r--django/db/backends/mysql/operations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/mysql/operations.py b/django/db/backends/mysql/operations.py
index 5d2a981226..e43c121b4d 100644
--- a/django/db/backends/mysql/operations.py
+++ b/django/db/backends/mysql/operations.py
@@ -291,7 +291,7 @@ class DatabaseOperations(BaseDatabaseOperations):
def get_db_converters(self, expression):
converters = super().get_db_converters(expression)
internal_type = expression.output_field.get_internal_type()
- if internal_type in ['BooleanField', 'NullBooleanField']:
+ if internal_type == 'BooleanField':
converters.append(self.convert_booleanfield_value)
elif internal_type == 'DateTimeField':
if settings.USE_TZ: