1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

magic-removal: Fixed #1479. I tried to track down the *real* problem to no avail. This fix is a total hack, but it works for now, and core is going to be re-removed soon anyhow.

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2505 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Joseph Kocherhans 2006-03-08 20:54:03 +00:00
parent a8efa34283
commit 7df29c013e

View File

@ -7,7 +7,7 @@ To define a many-to-one relationship, use ``ForeignKey()`` .
from django.db.models import *
class Parent(Model):
name = CharField(maxlength=100)
name = CharField(maxlength=100, core=True)
bestchild = ForeignKey("Child", null=True, related_name="favoured_by")
class Child(Model):