Related field has invalid lookup: iexact

188 views
Skip to first unread message

Brian Morton

unread,
Jul 15, 2007, 9:39:40 PM7/15/07
to Django users
I am getting the following error in my application's admin area trying
to add a record for a particular object. It seems to stem from the
fact that I am relating this record to a "member" object, and a member
is OneToOne with User. If I relate the object directly to User as a
foreignkey, I have no problems.

Error and trace.

http://www.parsed.org/paste/13/

Pertinent models.

http://www.parsed.org/paste/14/

I'm using svn trunk version of Django and Python 2.5 on Windows.

Malcolm Tredinnick

unread,
Jul 15, 2007, 9:46:40 PM7/15/07
to django...@googlegroups.com
On Mon, 2007-07-16 at 01:39 +0000, Brian Morton wrote:
> I am getting the following error in my application's admin area trying
> to add a record for a particular object. It seems to stem from the
> fact that I am relating this record to a "member" object, and a member
> is OneToOne with User. If I relate the object directly to User as a
> foreignkey, I have no problems.

I suspect you've hit #4562, which I'm pretty sure I'll be fixing today.

Regards,
Malcolm

--
Experience is something you don't get until just after you need it.
http://www.pointy-stick.com/blog/

Reply all
Reply to author
Forward
0 new messages