I'm using south to do schema and data migration in Django. I have a model like this:
class ModelFoo(models.Model):
first_name = models.CharField()
last_name = models.CharField()
@property
def full_name(self):
return self.first_name + self.last_name
And in south data migration code, I want to use full_name directly, like this:
foo.full_name
But I got an error:
AttributeError: 'ModelFoo' object has no attribute 'full_name'
What's going wrong here? I sure it's OK to use 'full_name' in the view code of Django, why it fails here?