summaryrefslogtreecommitdiff
path: root/tests/custom_pk/fields.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/custom_pk/fields.py')
-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)