If I have the following model in django;
class MyModel(models.Model):
name = models.CharField(max_length=50)
fullname = models.CharField(max_length=100,default=name)
How do I make the fullname field default to name? As it is right now, the fullname defaults to the string representation of the name CharField.
Example:
new MyModel(name='joel')
would yield 'joel' as both name and fullname, whereas
new MyModel(name='joel',fullname='joel karlsson')
would yield different name and fullname.