{% extends "organizations/settings/base.html" %} {% load i18n %} {% block title %}{{ organization.name }} - {% trans "Owners" %}{% endblock %} {% block organization_owners_active %}active{% endblock %} {% block organization_edit_content_header %}{% trans "Owners" %}{% endblock %} {% block organization_edit_content %} {% include "organizations/partials/owners_list.html" with objects=object_list %} {% comment %} TODO move owner/team member invitations to a dedicated view. Do not reuse this pattern, it is a bad pattern. This is a bit of a hack to avoid manipulating the view to work with multiple querysets on two separate models. On the owners/team member views, there will also be a listing of invitations (the `Invitation` model). But, the invitiation list will not respond to pagination without altering the view to support multi model pagination. This means that invitations could clog up the UI, as they won't be paginated, and the invitations will to stuffed below the view model listing, so really hard to find. Ideally, these should either be separate views entirely, or both OrganizationOwner and Invitation model queryset would be joined into a single queryset listing. {% endcomment %} {% block team_invitations %} {% if invitations.exists %}