summaryrefslogtreecommitdiff
path: root/django/db/backends/mysql/operations.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-07-06 13:18:05 -0400
committerTim Graham <timograham@gmail.com>2017-07-20 16:30:08 -0400
commit487362fa8f23d41de4db58e7408e66eb36399af0 (patch)
tree25897a03c885d44a15860f59c121f0b6fab3e4a8 /django/db/backends/mysql/operations.py
parent8d5095d8a33824e02c95ee44d6e5acdb4b39e7ed (diff)
downloaddjango-487362fa8f23d41de4db58e7408e66eb36399af0.tar.gz
Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and Expression.convert_value().
Unused since a0d166306fbdc41f49e6fadf4ec84b17eb147daa.
Diffstat (limited to 'django/db/backends/mysql/operations.py')
-rw-r--r--django/db/backends/mysql/operations.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/django/db/backends/mysql/operations.py b/django/db/backends/mysql/operations.py
index e7fc2b93bf..405aa4bd45 100644
--- a/django/db/backends/mysql/operations.py
+++ b/django/db/backends/mysql/operations.py
@@ -221,23 +221,23 @@ class DatabaseOperations(BaseDatabaseOperations):
converters.append(self.convert_uuidfield_value)
return converters
- def convert_textfield_value(self, value, expression, connection, context):
+ def convert_textfield_value(self, value, expression, connection):
if value is not None:
value = force_text(value)
return value
- def convert_booleanfield_value(self, value, expression, connection, context):
+ def convert_booleanfield_value(self, value, expression, connection):
if value in (0, 1):
value = bool(value)
return value
- def convert_datetimefield_value(self, value, expression, connection, context):
+ def convert_datetimefield_value(self, value, expression, connection):
if value is not None:
if settings.USE_TZ:
value = timezone.make_aware(value, self.connection.timezone)
return value
- def convert_uuidfield_value(self, value, expression, connection, context):
+ def convert_uuidfield_value(self, value, expression, connection):
if value is not None:
value = uuid.UUID(value)
return value