Kaydet (Commit) ebf3cdea authored tarafından James Bennett's avatar James Bennett

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
üst 57ddcdb0
...@@ -401,8 +401,8 @@ For example:: ...@@ -401,8 +401,8 @@ For example::
# ... # ...
def get_db_prep_save(self, value): def get_db_prep_save(self, value):
return ''.join([''.join(l) for l in (self.north, return ''.join([''.join(l) for l in (value.north,
self.east, self.south, self.west)]) value.east, value.south, value.west)])
``pre_save(self, model_instance, add)`` ``pre_save(self, model_instance, add)``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment