fix: Make sure rescue orgs with ans only in hierarch show correctly
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -194,7 +194,7 @@ class RescueOrganization(models.Model):
|
|||||||
return AdoptionNotice.objects.filter(organization=self)
|
return AdoptionNotice.objects.filter(organization=self)
|
||||||
|
|
||||||
@property
|
@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.
|
Shows all adoption notices of this rescue organization and all child organizations.
|
||||||
"""
|
"""
|
||||||
|
@@ -87,7 +87,7 @@
|
|||||||
|
|
||||||
<h2 class="title is-2">{% translate 'Vermittlungen der Organisation' %}</h2>
|
<h2 class="title is-2">{% translate 'Vermittlungen der Organisation' %}</h2>
|
||||||
<div class="container-cards">
|
<div class="container-cards">
|
||||||
{% if org.adoption_notices %}
|
{% if org.adoption_notices_in_hierarchy %}
|
||||||
{% for adoption_notice in org.adoption_notices_in_hierarchy %}
|
{% for adoption_notice in org.adoption_notices_in_hierarchy %}
|
||||||
{% include "fellchensammlung/partials/partial-adoption-notice-minimal.html" %}
|
{% include "fellchensammlung/partials/partial-adoption-notice-minimal.html" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Reference in New Issue
Block a user