Ticket #6759: patch_django_6759.diff

File patch_django_6759.diff, 608 bytes (added by david, 7 years ago)
  • docs/custom_model_fields.txt

     
    401401        # ...
    402402
    403403        def get_db_prep_save(self, value):
    404             return ''.join([''.join(l) for l in (self.north,
    405                     self.east, self.south, self.west)])
     404            return ''.join([''.join(l) for l in (value.north,
     405                    value.east, value.south, value.west)])
    406406
    407407``pre_save(self, model_instance, add)``
    408408~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Back to Top