From f97f71f59249f1fbeebe84d4fc858d70fc456f7d Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 10 Apr 2020 12:45:42 +0200 Subject: Refs #12990 -- Bumped mysqlclient requirement to >= 1.4.0. MySQLdb.constants.FIELD_TYPE.JSON was added in mysqlclient 1.4.0rc2. --- django/db/backends/mysql/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'django') diff --git a/django/db/backends/mysql/base.py b/django/db/backends/mysql/base.py index eb0ba18cda..44560ccdaf 100644 --- a/django/db/backends/mysql/base.py +++ b/django/db/backends/mysql/base.py @@ -32,8 +32,8 @@ from .schema import DatabaseSchemaEditor # isort:skip from .validation import DatabaseValidation # isort:skip version = Database.version_info -if version < (1, 3, 13): - raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % Database.__version__) +if version < (1, 4, 0): + raise ImproperlyConfigured('mysqlclient 1.4.0 or newer is required; you have %s.' % Database.__version__) # MySQLdb returns TIME columns as timedelta -- they are more like timedelta in -- cgit v1.3