'Display list of repositories to import
Adds a warning to the listing if any of the accounts connected for the
user are not supported accounts.'

def get(self, request, *args, **kwargs):

    deprecated_accounts = SocialAccount.objects.filter(user=self.request.user).exclude(provider__in=[service.adapter.provider_id for service in registry])
    for account in deprecated_accounts:
        provider_account = account.get_provider_account()
        messages.error(request, mark_safe(_('There    is    a    problem    with    your    {service}    account,    try    reconnecting    your    account    on    your    <a    href="{url}">connected    services    page</a>.').format(service=provider_account.get_brand()['name'], url=reverse('socialaccount_connections'))))
    return super(ImportView, self).get(request, *args, **kwargs)
