class User models Model first_name models CharField last_name models C

1
2
3
4
5
6
class User(models.Model):
first_name = models.CharField()
last_name = models.CharField()
def name(self):
return '%s %s' % (self.first_name, self.last_name)