Re: Using ForeignKey with dJango and PyAMF

2010-03-01 Thread njoyce
On Feb 10, 9:14 am, WC wrote: > According to this bug report, select_related is supposed to return the > data, but it doesn't.  Also, if I can't get the foreign key, is there > a way around this?  All I really need is the id of the foreignKey > object.  Any help would be much appreciated.  I am a

Re: Using ForeignKey with dJango and PyAMF

2010-02-10 Thread WC
According to this bug report, select_related is supposed to return the data, but it doesn't. Also, if I can't get the foreign key, is there a way around this? All I really need is the id of the foreignKey object. Any help would be much appreciated. I am a newbie to this architecture. -- You r

Re: Using ForeignKey with dJango and PyAMF

2010-02-08 Thread Vasil Vangelovski
There's a bug in PyAMF: http://dev.pyamf.org/ticket/694 On Mon, Feb 8, 2010 at 5:54 PM, WC wrote: > Hi Everyone, > > I have a ForeignKey field that is always null on the Flex client.  I > have tried using select_related(), but it's still null.  Any idea what > I am doing wrong?  In the following

Re: Using ForeignKey with dJango and PyAMF

2010-02-08 Thread WC
By the way, all I really need is the parentBlock_id. On Feb 8, 11:54 am, WC wrote: > Hi Everyone, > > I have a ForeignKey field that is always null on the Flex client.  I > have tried using select_related(), but it's still null.  Any idea what > I am doing wrong?  In the following sample code, pa

Using ForeignKey with dJango and PyAMF

2010-02-08 Thread WC
Hi Everyone, I have a ForeignKey field that is always null on the Flex client. I have tried using select_related(), but it's still null. Any idea what I am doing wrong? In the following sample code, parentBlock is always null on the Flex client: File: BlockVO.py from django.db import models c