Ticket #5531: t5531.diff
| File t5531.diff, 0.7 kB (added by ramiro, 9 months ago) |
|---|
-
a/django/db/backends/mysql/base.py
old new 17 17 version = Database.version_info 18 18 if (version < (1,2,1) or (version[:3] == (1, 2, 1) and 19 19 (len(version) < 5 or version[3] != 'final' or version[4] < 2))): 20 raise ImportError("MySQLdb-1.2.1p2 or newer is required; you have %s" % Database.__version__) 20 from django.core.exceptions import ImproperlyConfigured 21 raise ImproperlyConfigured("MySQLdb-1.2.1p2 or newer is required; you have %s" % Database.__version__) 21 22 22 23 from MySQLdb.converters import conversions 23 24 from MySQLdb.constants import FIELD_TYPE
