Thanks for the reply, DR.
How would I use the generic relationship without the backward link?
I have the normal auth.user class, and I have the my.user class that
extends it and has a polymorphic link pointing at auth.user. The
problem occurs when I collect a login/password, because I can't lookup
my.user without the backward link, that is I can't
my.user.filter(account__username = x, account__password = y) because
polymorphic links don't allow this. I also can't move in reverse, the
auth.user.authenticate(username, password) function returns an
auth.user, and I am unclear as to how I would get a my.user from this
information without calling for my.user.objects.all() and comparing
the link (which seems terribly, terribly inefficient...). Is there a
way to start with the target (auth.user) and get to my.user backward
via the contenttype?
I know about AUTH_PROFILE_MODULE, but the problem is that the goal is
to have multiple user classes. Ideally there would be a way to
specify the user model as an attribute of the auth.user model (which
would be the heretofore missing backward link), but barring that this
isn't much use to me because the AUTH_PROFILE_MODULE would have
multiple values.
Any clues?
Thanks,
Alex.
On Oct 30, 4:33 pm, Daniel Roseman <
roseman.dan...@googlemail.com>
wrote:
> which extends User, and enables a user.get_profile() method. Seehttp://
docs.djangoproject.com/en/dev/topics/auth/#storing-additional-...
>
> --
> DR.