Using Related Names Not Working

2014-11-17 Thread Shaun Livingston
Hi, I have two different apps that contain classes of the same name, and using a related name in a GenericRelation doesn't seem to be helping. Here are the details: In both of the apps I have "Source" and "Variable." They're not the same for either app, so I can't just create one. These apps a

Re: Using Related Names Not Working

2014-11-17 Thread Collin Anderson
Hello, I don't think you need a GenericRelation unless you're using a GenericForeignKey. Would it work to use plan model.ForeignKey instead of GenericRelation? Collin On Monday, November 17, 2014 12:50:09 PM UTC-5, Shaun Livingston wrote: > > Hi, > I have two different apps that contain class

Re: Using Related Names Not Working

2014-11-18 Thread Shaun Livingston
Yeah, I was on the #django IRC yesterday and they were saying something similiar, that I should switch it to a ManyToManyField. I did so, and also tried making it a ForeignKey, but both without success. As far as trying your thought specifically, I changed GenericRelation to ForeignKey and trie

Re: Using Related Names Not Working

2014-11-21 Thread Collin Anderson
Hi, Yes, that's what I was hoping. Are you getting an error message, or what happens when you try? Collin On Tuesday, November 18, 2014 1:16:00 PM UTC-5, Shaun Livingston wrote: > > Yeah, I was on the #django IRC yesterday and they were saying something > similiar, that I should switch it to