Ticket #15744: ticket15744.diff

File ticket15744.diff, 504 bytes (added by guyon.moree@…, 4 years ago)

diff patch

  • topics/serialization.txt

     
    328328        birthdate = models.DateField()
    329329
    330330        def natural_key(self):
    331             return (self.first_name, self.last_name)
     331            return {'first name': self.first_name, 'last name': self.last_name}
    332332
    333333        class Meta:
    334334            unique_together = (('first_name', 'last_name'),)
Back to Top