summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJames Bennett <ubernostrum@gmail.com>2008-03-18 19:13:41 +0000
committerJames Bennett <ubernostrum@gmail.com>2008-03-18 19:13:41 +0000
commitebf3cdea733c82e2e104cd1417c57a52c54b26e0 (patch)
treed54a3a8d216db180d29fa81ae1ffe1b1acd87f76 /docs
parent57ddcdb0c858e772ed741e25b8e303cb7a55472b (diff)
Fixed #6759: Corrected example of get_db_prep_save() in docs/custom_model_fields.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7301 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/custom_model_fields.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/custom_model_fields.txt b/docs/custom_model_fields.txt
index 923b331a95..2b344921ef 100644
--- a/docs/custom_model_fields.txt
+++ b/docs/custom_model_fields.txt
@@ -401,8 +401,8 @@ For example::
# ...
def get_db_prep_save(self, value):
- return ''.join([''.join(l) for l in (self.north,
- self.east, self.south, self.west)])
+ return ''.join([''.join(l) for l in (value.north,
+ value.east, value.south, value.west)])
``pre_save(self, model_instance, add)``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~