diff options
author | Marc Tamlyn <marc.tamlyn@gmail.com> | 2015-02-20 10:53:59 +0000 |
---|---|---|
committer | Marc Tamlyn <marc.tamlyn@gmail.com> | 2015-02-20 11:35:52 +0000 |
commit | 32d4db66b999cde6776d4be7f71528dab94916cc (patch) | |
tree | c952a37b99695ebaebb868db7647849e3eff5b8b /django/db/backends/mysql/operations.py | |
parent | 4755f8fc25331c739a6f932cc8aba0cc9e62e352 (diff) | |
download | django-32d4db66b999cde6776d4be7f71528dab94916cc.tar.gz |
Update converters to take a consistent set of parameters.
As suggested by Anssi. This has the slightly strange side effect of
passing the expression to Expression.convert_value has the expression
passed back to it, but it allows more complex patterns of expressions.
Diffstat (limited to 'django/db/backends/mysql/operations.py')
-rw-r--r-- | django/db/backends/mysql/operations.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/db/backends/mysql/operations.py b/django/db/backends/mysql/operations.py index 7edc13b3ff..fd468cb182 100644 --- a/django/db/backends/mysql/operations.py +++ b/django/db/backends/mysql/operations.py @@ -184,17 +184,17 @@ class DatabaseOperations(BaseDatabaseOperations): converters.append(self.convert_textfield_value) return converters - def convert_booleanfield_value(self, value, expression, context): + def convert_booleanfield_value(self, value, expression, connection, context): if value in (0, 1): value = bool(value) return value - def convert_uuidfield_value(self, value, expression, context): + def convert_uuidfield_value(self, value, expression, connection, context): if value is not None: value = uuid.UUID(value) return value - def convert_textfield_value(self, value, expression, context): + def convert_textfield_value(self, value, expression, connection, context): if value is not None: value = force_text(value) return value |