diff --git a/src/fellchensammlung/models.py b/src/fellchensammlung/models.py index 38f8649..07e8c18 100644 --- a/src/fellchensammlung/models.py +++ b/src/fellchensammlung/models.py @@ -445,13 +445,6 @@ class AdoptionNotice(models.Model): distance = geo.calculate_distance_between_coordinates(self.position, position) return distance < max_distance - @property - def link_to_more_information(self): - from urllib.parse import urlparse - - domain = urlparse(self.further_information).netloc - return f"{domain}" - @property def is_active(self): if not hasattr(self, 'adoptionnoticestatus'): diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/partial-check-adoption-notice.html b/src/fellchensammlung/templates/fellchensammlung/partials/partial-check-adoption-notice.html index 70b5c6e..0048b77 100644 --- a/src/fellchensammlung/templates/fellchensammlung/partials/partial-check-adoption-notice.html +++ b/src/fellchensammlung/templates/fellchensammlung/partials/partial-check-adoption-notice.html @@ -9,7 +9,11 @@
{% translate "Externe Quelle" %}: {{ adoption_notice.link_to_more_information | safe }}
+{% translate "Externe Quelle" %}: + + {{ adoption_notice.further_information | domain}} + +
{% endif %}