mirror of
https://github.com/django/django.git
synced 2024-12-27 03:25:58 +00:00
09a63632c5
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
9 lines
197 B
Python
9 lines
197 B
Python
from django.db import models
|
|
|
|
|
|
class People(models.Model):
|
|
name = models.CharField(max_length=255)
|
|
|
|
class Message(models.Model):
|
|
from_field = models.ForeignKey(People, db_column='from_id')
|