#9425: select_related does not descend ForeignKey fields which can be null ---------------------------------------------------+------------------------ Reporter: fas | Owner: fas Status: reopened | Milestone: post-1.0 Component: Database layer (models, ORM) | Version: 1.0 Resolution: | Keywords: select_related, null, foreignkey, ignored Stage: Unreviewed | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ---------------------------------------------------+------------------------ Changes (by sfllaw):
* cc: si...@akoha.com (added) * status: closed => reopened * resolution: invalid => Comment: The above patch, ''select-related-on-null.patch'', lets you choose if you want select_related to descend into fields marked as null=True. Since you can use select_related('field-name') to specify a nullable field, but sometimes you just know that you want all of them. -- Ticket URL: <http://code.djangoproject.com/ticket/9425#comment:2> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---