Ticket #15744: ticket15744.diff
File ticket15744.diff, 504 bytes (added by , 13 years ago) |
---|
-
topics/serialization.txt
328 328 birthdate = models.DateField() 329 329 330 330 def natural_key(self): 331 return (self.first_name, self.last_name)331 return {'first name': self.first_name, 'last name': self.last_name} 332 332 333 333 class Meta: 334 334 unique_together = (('first_name', 'last_name'),)