Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #6759: Corrected example of get_db_prep_save() in docs/custom_m…

…odel_fields.txt

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7301 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ebf3cdea733c82e2e104cd1417c57a52c54b26e0 1 parent 57ddcdb
@ubernostrum ubernostrum authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/custom_model_fields.txt
View
4 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)``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please sign in to comment.
Something went wrong with that request. Please try again.