From d92c38a28177f4cad91c1921ca2b621d3af01912 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Fri, 29 Jun 2012 15:08:30 +0200 Subject: [PATCH] [1.4.x] Fixed #18528 -- Fixed custom field value_to_string example Thanks anuraguniyal for the report. --- docs/howto/custom-model-fields.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 --------------------