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
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:
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
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
4 matches
Mail list logo