class MyMigration models migration def forward self db create_table us

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
class MyMigration(models.migration):
def forward(self):
db.create_table('user', (
('first_name', models.CharField(max_length = 255)),
('last_name', models.CharField(max_length = 255)),
))
class User(db.current.User):
def name(self):
return '%s %s' % (self.first_name, self.last_name)