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