'List subproject URLs
This is used in search result linking'

def get_subproject_urls(self):

    if getattr(settings, 'DONT_HIT_DB', True):
        return [(proj['slug'], proj['canonical_url']) for proj in apiv2.project(self.pk).subprojects().get()['subprojects']]
    return [(proj.child.slug, proj.child.get_docs_url()) for proj in self.subprojects.all()]
