Fix bug with child/grandchild select_subclasses in Django 1.6+; thanks Keryn Knight.