summaryrefslogtreecommitdiff
path: root/tests/custom_pk
diff options
context:
space:
mode:
authorMarc Tamlyn <marc.tamlyn@gmail.com>2015-02-20 10:53:59 +0000
committerMarc Tamlyn <marc.tamlyn@gmail.com>2015-02-20 11:35:52 +0000
commit32d4db66b999cde6776d4be7f71528dab94916cc (patch)
treec952a37b99695ebaebb868db7647849e3eff5b8b /tests/custom_pk
parent4755f8fc25331c739a6f932cc8aba0cc9e62e352 (diff)
downloaddjango-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 'tests/custom_pk')
-rw-r--r--tests/custom_pk/fields.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/custom_pk/fields.py b/tests/custom_pk/fields.py
index bf349545e5..3779fc6c43 100644
--- a/tests/custom_pk/fields.py
+++ b/tests/custom_pk/fields.py
@@ -43,7 +43,7 @@ class MyAutoField(models.CharField):
value = MyWrapper(value)
return value
- def from_db_value(self, value, connection, context):
+ def from_db_value(self, value, expression, connection, context):
if not value:
return
return MyWrapper(value)