2011-01-24 23:18:56 +08:00
|
|
|
from django.db import models
|
2011-01-24 22:58:05 +08:00
|
|
|
|
2011-01-24 23:18:56 +08:00
|
|
|
|
|
|
|
class People(models.Model):
|
|
|
|
name = models.CharField(max_length=255)
|
|
|
|
|
|
|
|
class Message(models.Model):
|
|
|
|
from_field = models.ForeignKey(People, db_column='from_id')
|