summaryrefslogtreecommitdiff
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:10:41 +0200
commitb9ecbedb31375a887d100ccf550a091c8d5d4fd7 (patch)
tree6402d0d8a094963b8565839be4463a6aef9945a6
parent54b1519dfd90ea042105fc42aa439763c8df93d4 (diff)
Fixed #18528 -- Fixed custom field value_to_string example
Thanks anuraguniyal for the report.
-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 1377a62c89..99c5904fe9 100644
--- a/docs/howto/custom-model-fields.txt
+++ b/docs/howto/custom-model-fields.txt
@@ -666,7 +666,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
--------------------