﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
258	Cannot create many-many relationships within the same table	andrew@…	Adrian Holovaty	"This model fails:

{{{
#!python
from django.core import meta

# Create your models here.
class Object(meta.Model):
    fields = (
        meta.CharField('title', maxlength=50),
    )

class Relate(meta.Model):
    fields = (
        meta.ForeignKey(Object, rel_name='parent'),
        meta.ForeignKey(Object, rel_name='child'),
    )
}}}

When you generate SQL for it, two columns with the name 'object_id' are placed in the 'relate' table.  I was expecting columns with names 'parent_id' and 'child_id'."	defect	closed	Database layer (models, ORM)		major	invalid	sql ForeignKey		Unreviewed	0	0	0	0	0	0
