Re: idiotic foreignkey error

2011-03-31 Thread Nick
I needed to declare fk_name in the inline formsets. I still stand by the fact that it's an idiotic error message. Not helpful at all. On Mar 31, 2:26 pm, Nick wrote: > sorry, they have unique names. When i was writing this message out I > messed them up. the names are arace,

Re: idiotic foreignkey error

2011-03-31 Thread Nick
sorry, they have unique names. When i was writing this message out I messed them up. the names are arace, brace and crace. I think this has something to do with some relic inlinde formsets I was using a while ago. On Mar 31, 2:19 pm, Shawn Milochik wrote: > They need unique

Re: idiotic foreignkey error

2011-03-31 Thread Shawn Milochik
They need unique related_name values. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com.

idiotic foreignkey error

2011-03-31 Thread Nick
I have a model with 3 foreignkeys to another model. This has never been an issue for me before but now it's throwing an error: has more than 1 ForeignKey to My model looks like this: a_race = models.ForeignKey('Race', related_name='arace', blank=True) b_race = models.ForeignKey('Race',