Refs #27795 -- Removed force_bytes() usage in db/backends/base/schema.py.
This commit is contained in:
parent
1d65ddd9c3
commit
abeed587b1
|
@ -9,7 +9,6 @@ from django.db.backends.utils import split_identifier
|
||||||
from django.db.models import Index
|
from django.db.models import Index
|
||||||
from django.db.transaction import TransactionManagementError, atomic
|
from django.db.transaction import TransactionManagementError, atomic
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
from django.utils.encoding import force_bytes
|
|
||||||
|
|
||||||
logger = logging.getLogger('django.db.backends.schema')
|
logger = logging.getLogger('django.db.backends.schema')
|
||||||
|
|
||||||
|
@ -144,7 +143,7 @@ class BaseDatabaseSchemaEditor:
|
||||||
"""
|
"""
|
||||||
h = hashlib.md5()
|
h = hashlib.md5()
|
||||||
for arg in args:
|
for arg in args:
|
||||||
h.update(force_bytes(arg))
|
h.update(arg.encode())
|
||||||
return h.hexdigest()[:8]
|
return h.hexdigest()[:8]
|
||||||
|
|
||||||
# Field <-> database mapping functions
|
# Field <-> database mapping functions
|
||||||
|
|
Loading…
Reference in New Issue