

def get_query_set(self, **db_hints):
    db = router.db_for_read(self.field.rel.to, **db_hints)
    rel_mgr = self.field.rel.to._default_manager
    if getattr(rel_mgr, 'use_for_related_fields', False):
        return rel_mgr.using(db)
    else:
        return QuerySet(self.field.rel.to).using(db)

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/db/models/fields/related.py ReverseSingleRelatedObjectDescriptor.get_query_set/original