Hello, is there a way to force the django db model to load all fields
for a particular model _including_ any generic foreign keys (it doesn't
seem to do this by default).

Currently: Account.objects.select_related() will load all 'simple'
fields like IntegerField, CharField, etc, but not GenericForeignKey.

Another problem is that I find if I create a OneToOneField link to the
default django.contrib.auth.User model (from my Account model),
everytime I access request.user.account it is hitting the db to select
the account record.  How to avoid this/cache this.

Thanks for any input.


--~--~---------~--~----~------------~-------~--~----~
 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to