2006-07-04 18:48:07 +08:00
|
|
|
from django.db import models
|
|
|
|
|
|
|
|
class First(models.Model):
|
|
|
|
second = models.IntegerField()
|
|
|
|
|
|
|
|
class Second(models.Model):
|
|
|
|
first = models.ForeignKey(First, related_name = 'the_first')
|
|
|
|
|
|
|
|
# If ticket #1578 ever slips back in, these models will not be able to be
|
|
|
|
# created (the field names being lower-cased versions of their opposite
|
|
|
|
# classes is important here).
|
|
|
|
|
2006-08-27 21:59:47 +08:00
|
|
|
__test__ = {'API_TESTS':""}
|