Re: has more than 1 ForeignKey to

2008-11-10 Thread jd.strickler
s to each other with manager/ > managed hierarchical relationships, whereby everyone has one manager > (except the big boss who has none): > >     manager = models.ForeignKey(User, blank=True, > related_name='employees_userprofile_manager') > > My models fail to load wi

Re: has more than 1 ForeignKey to

2008-11-10 Thread Karen Tracey
ith manager/ > managed hierarchical relationships, whereby everyone has one manager > (except the big boss who has none): > >manager = models.ForeignKey(User, blank=True, > related_name='employees_userprofile_manager') > > My models fail to load with the exception:

Re: has more than 1 ForeignKey to

2008-11-10 Thread Michael Ellis
Try settting related_name on "user" as well. user = models.ForeignKey(User, unique=True, related_name='foo') ME --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

has more than 1 ForeignKey to

2008-11-10 Thread [EMAIL PROTECTED]
none): manager = models.ForeignKey(User, blank=True, related_name='employees_userprofile_manager') My models fail to load with the exception: has more than 1 ForeignKey to This doesn't seem logical to me at all: the above is a perfectly fine example of two foreign keys being meaning