fix: Make sure rescue orgs with ans only in hierarch show correctly
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-07-22 13:25:47 +02:00
parent 0edb9094c4
commit 2589f1c703
2 changed files with 2 additions and 2 deletions

View File

@@ -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.
"""

View File

@@ -87,7 +87,7 @@
<h2 class="title is-2">{% translate 'Vermittlungen der Organisation' %}</h2>
<div class="container-cards">
{% 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 %}