From 2589f1c7033e4de5370f18bbbb7db117dfa8df95 Mon Sep 17 00:00:00 2001 From: moanos Date: Tue, 22 Jul 2025 13:25:47 +0200 Subject: [PATCH] fix: Make sure rescue orgs with ans only in hierarch show correctly --- src/fellchensammlung/models.py | 2 +- .../fellchensammlung/details/detail-rescue-organization.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fellchensammlung/models.py b/src/fellchensammlung/models.py index 38a5834..c151688 100644 --- a/src/fellchensammlung/models.py +++ b/src/fellchensammlung/models.py @@ -194,7 +194,7 @@ class RescueOrganization(models.Model): return AdoptionNotice.objects.filter(organization=self) @property - def adoption_notices_in_hierarchy(self, adoption_notices=None): + def adoption_notices_in_hierarchy(self): """ Shows all adoption notices of this rescue organization and all child organizations. """ diff --git a/src/fellchensammlung/templates/fellchensammlung/details/detail-rescue-organization.html b/src/fellchensammlung/templates/fellchensammlung/details/detail-rescue-organization.html index 815e9db..08edd5a 100644 --- a/src/fellchensammlung/templates/fellchensammlung/details/detail-rescue-organization.html +++ b/src/fellchensammlung/templates/fellchensammlung/details/detail-rescue-organization.html @@ -87,7 +87,7 @@

{% translate 'Vermittlungen der Organisation' %}

- {% if org.adoption_notices %} + {% if org.adoption_notices_in_hierarchy %} {% for adoption_notice in org.adoption_notices_in_hierarchy %} {% include "fellchensammlung/partials/partial-adoption-notice-minimal.html" %} {% endfor %}