On Tue, Jul 28, 2009 at 1:19 AM, Andrew Fong wrote:
>
> Hi all,
>
> I'm using contrib.auth and have set up my own Profile model, linked to
> the User model with OneToOneField. There are a lot of times when I'd
> like to prefetch the Profile model when getting the User model -- e.g.
> User.objects.
Hi all,
I'm using contrib.auth and have set up my own Profile model, linked to
the User model with OneToOneField. There are a lot of times when I'd
like to prefetch the Profile model when getting the User model -- e.g.
User.objects.all().select_related('profile')
However, select_related does not
2 matches
Mail list logo