Example:
class Author(models.Model):
first_name = models.CharField()
last_name = models.CharField()
def _get_full_name(self):
return '{0} {1}'.format(self.first_name, self.last_name)
full_name = property(_get_full_name)
What's the recommended way of putting a unique constaint on the full_name? Was thinking of overwriting save but maybe there are better solutions?