{% load static %} {% for socialaccount in membership.user.socialaccount_set.all %} {% if socialaccount.provider == 'orcid' %} ORCID logo {% endif %} {% endfor %}