summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-06-29 15:08:30 +0200
committerClaude Paroz <claude@2xlibre.net>2012-06-29 15:11:13 +0200
commitd92c38a28177f4cad91c1921ca2b621d3af01912 (patch)
tree95d176ecae309436f994a66b7f23769e477eca82 /docs
parent9014b138e6d78aa5fef2c63b8e482379005d32b2 (diff)
[1.4.x] Fixed #18528 -- Fixed custom field value_to_string example
Thanks anuraguniyal for the report.
Diffstat (limited to 'docs')
-rw-r--r--docs/howto/custom-model-fields.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/howto/custom-model-fields.txt b/docs/howto/custom-model-fields.txt
index aac9883526..af82865263 100644
--- a/docs/howto/custom-model-fields.txt
+++ b/docs/howto/custom-model-fields.txt
@@ -684,7 +684,7 @@ data storage anyway, we can reuse some existing conversion code::
def value_to_string(self, obj):
value = self._get_val_from_obj(obj)
- return self.get_db_prep_value(value)
+ return self.get_prep_value(value)
Some general advice
--------------------