0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Refs #27795 -- Removed force_bytes() usage in db/backends/base/schema.py.

This commit is contained in:
Jon Dufresne 2018-09-25 06:54:06 -07:00 committed by Tim Graham
parent 1d65ddd9c3
commit abeed587b1

View File

@ -9,7 +9,6 @@ from django.db.backends.utils import split_identifier
from django.db.models import Index
from django.db.transaction import TransactionManagementError, atomic
from django.utils import timezone
from django.utils.encoding import force_bytes
logger = logging.getLogger('django.db.backends.schema')
@ -144,7 +143,7 @@ class BaseDatabaseSchemaEditor:
"""
h = hashlib.md5()
for arg in args:
h.update(force_bytes(arg))
h.update(arg.encode())
return h.hexdigest()[:8]
# Field <-> database mapping functions