Code

Ticket #6759: patch_django_6759.diff

File patch_django_6759.diff, 608 bytes (added by david, 6 years ago)
Line 
1Index: docs/custom_model_fields.txt
2===================================================================
3--- docs/custom_model_fields.txt        (revision 7229)
4+++ docs/custom_model_fields.txt        (working copy)
5@@ -401,8 +401,8 @@
6         # ...
7 
8         def get_db_prep_save(self, value):
9-            return ''.join([''.join(l) for l in (self.north,
10-                    self.east, self.south, self.west)])
11+            return ''.join([''.join(l) for l in (value.north,
12+                    value.east, value.south, value.west)])
13 
14 ``pre_save(self, model_instance, add)``
15 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~