django/django — pull request #513 by lorin (2012-11-12 14:46:48+00:00)
Title: Add tests to illustrate #16572

Add tests that use select_related to traverse two reverse OneToOne
relationships.

This reproduces the bug described in [ticket 16572](https://code.djangoproject.com/ticket/16572).