PageRenderTime 26ms CodeModel.GetById 23ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/regressiontests/inspectdb/models.py

https://code.google.com/p/mango-py/
Python | 8 lines | 5 code | 3 blank | 0 comment | 0 complexity | c8052422c91df3d4cb6eee80bd610cf4 MD5 | raw file
1from django.db import models
2
3
4class People(models.Model):
5    name = models.CharField(max_length=255)
6
7class Message(models.Model):
8    from_field = models.ForeignKey(People, db_column='from_id')