diff --git a/scipost_django/finances/views.py b/scipost_django/finances/views.py index 886822cae90bc6aff9b1f3f16cdf48d639e06db6..b9aa1a6abb95d5bc50d7ee40dbefb5b39be51df9 100644 --- a/scipost_django/finances/views.py +++ b/scipost_django/finances/views.py @@ -379,7 +379,7 @@ class OrganizationSponsorshipSubsidyCreateView(PermissionsMixin, CreateView): organization = get_object_or_404( Organization, pk=self.kwargs.get("organization_id") ) - last_subsidy = Subsidy.objects.filter(organization=organization).last() + last_subsidy = Subsidy.objects.filter(organization=organization).first() current_year = timezone.now().year return { "organization": organization, diff --git a/scipost_django/organizations/templates/organizations/_organization_card.html b/scipost_django/organizations/templates/organizations/_organization_card.html index 4dcb204c9e329b0846a98099f1dceb91ad77f145..02749b02e0f18d821cfd6f5c019871afdc06dc3a 100644 --- a/scipost_django/organizations/templates/organizations/_organization_card.html +++ b/scipost_django/organizations/templates/organizations/_organization_card.html @@ -208,7 +208,7 @@ <div class="tab-pane pt-4" id="support-{{ org.id }}" role="tabpanel" aria-labelledby="support-{{ org.id }}-tab"> <h3 class="highlight">Support history</h3> {% if 'finadmin' in user_roles %} - <a href="{% url "finances:subsidy_sponsorship_create" organization_id=org.id %}">Create a new sponsorship agreement</a> + <a href="{% url "finances:subsidy_sponsorship_create" organization_id=org.id %}">Create a new subsidy from this Organization</a> {% endif %} {% if org.subsidy_set.obtained|length > 0 or org.children.all|length > 0 %} {% if org.subsidy_set.obtained|length > 0 %}