Hello, I have a database function that returns the necessary data for constructing a bunch of related objects in one go. One of the objects has a OneToOne relationship with my main model instance, and it doesn't exists for every object of the main model. Since the main model has a reverse relationship with that class, I am looking for a good way to emulate the select_related behaviour for it. My problem is that, even if I set the relationships in the instances that have it, the rest will not be set, and Django will hit the database, trying to figure out if such relationships exist (I already know they don't). So I am looking for the method which 'select_related' uses to tell Django that certain objects don't have reverse relationships.
-- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.