From a2f619d91770cb2725a974242afc955c87a9cbd3 Mon Sep 17 00:00:00 2001 From: Pal Date: Wed, 25 Mar 2020 14:55:37 -0400 Subject: [PATCH] Update operations.py Django throws an error for unknown parameter context. Removing context from the convert function removes the error. --- lib/mysql/connector/django/operations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mysql/connector/django/operations.py b/lib/mysql/connector/django/operations.py index 798acd3d..29113eb3 100644 --- a/lib/mysql/connector/django/operations.py +++ b/lib/mysql/connector/django/operations.py @@ -224,17 +224,17 @@ def get_db_converters(self, expression): return converters def convert_booleanfield_value(self, value, - expression, connection, context): + expression, connection): if value in (0, 1): value = bool(value) 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 - 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