Re: Setting up fixture on model with ForeignKey

2007-04-20 Thread Russell Keith-Magee
On 4/21/07, James <[EMAIL PROTECTED]> wrote: > > Hi, > > "datasource = models.ForeignKey(DataSource)" > > I tried changing the fixture line to "datasource": "1", but this > results in the stack trace below. Does anyone know how to set up this > fixture properly? Pretty close; what you're looking

Re: Setting up fixture on model with ForeignKey [IGNORE]

2007-04-20 Thread James
Never mind. Forgot to reference the fixture in my test. jh On Apr 20, 10:28 am, James <[EMAIL PROTECTED]> wrote: > Hi, > > I'm having some trouble setting up a fixture for a model (Dataset) > that has a many-to-one relation with another model, DataSource. My > initial try at this was to put "data

Setting up fixture on model with ForeignKey

2007-04-20 Thread James
Hi, I'm having some trouble setting up a fixture for a model (Dataset) that has a many-to-one relation with another model, DataSource. My initial try at this was to put "datasource_id": "1" (the "1" points to a datasource fixture in another file) in the dataset fixture, but that results in "Probl