Skip to content

Commit

Permalink
Fixed #6759: Corrected example of get_db_prep_save() in docs/custom_m…
Browse files Browse the repository at this point in the history
…odel_fields.txt

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7301 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
ubernostrum committed Mar 18, 2008
1 parent 57ddcdb commit ebf3cde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/custom_model_fields.txt
Expand Up @@ -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)``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit ebf3cde

Please sign in to comment.