'Get the admin urls for the title extensions menu items, depending on whether a TitleExtension instance exists
for each Title in the current page.
A single language can be passed to only work on a single title.
Return a list of tuples of the title extension and the url; the extension is None if no instance exists,
the url is None is no admin is registered for the extension.'

def get_title_extension_admin(self, language=None):

    page = self._get_page()
    urls = []
    if language:
        titles = (page.get_title_obj(language),)
    else:
        titles = page.title_set.filter(language__in=get_language_list(page.site_id))
    for title in titles:
        try:
            title_extension = self.model.objects.get(extended_object_id=title.pk)
        except self.model.DoesNotExist:
            title_extension = None
        try:
            model_name = self.model.__name__.lower()
            if title_extension:
                admin_url = admin_reverse(('%s_%s_change' % (self.model._meta.app_label, model_name)), args=(title_extension.pk,))
            else:
                admin_url = ('%s?extended_object=%s' % (admin_reverse(('%s_%s_add' % (self.model._meta.app_label, model_name))), title.pk))
        except NoReverseMatch:
            admin_url = None
        if admin_url:
            urls.append((title_extension, admin_url))
    return urls
