﻿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
1577	Edit inline broken for models with multiple foreign keys to another model.	k.kosciuszkiewicz at gmail dot com	Adrian Holovaty	"Test case:

{{{
#!python
class Publication(meta.Model):
    author = meta.CharField(maxlength=100)
    title = meta.CharField(maxlength=100)
    class META:
        admin = meta.Admin()

class Reference(meta.Model):
    position = meta.PositiveSmallIntegerField(core=True)
    cited    = meta.ForeignKey(Publication,
                    related_name=""citation"",
                    core=True)
    citing   = meta.ForeignKey(Publication,
                    related_name=""reference"",
                    edit_inline=meta.TABULAR)
    class META:
        admin = meta.Admin()
        ordering = ['position']
}}}

This should be perfectly valid but breaks in `django/contrib/admin/templatetags/admin_modify.py` in method `EditInlineMode.render()` with statement:
{{{
    klass = relation.field.rel.edit_inline
}}}
that returns `False` instead of class name. This is propagated further to result in attempt to call `False(...)` instead of `ClassName(...)` later in template rendering code.
"	defect	closed	contrib.admin		normal	duplicate		mir@…	Unreviewed	0	0	0	0	0	0
