feat: Add overview page of animal shelters

This commit is contained in:
2025-01-06 09:02:07 +01:00
parent e3833b4505
commit 5e80d75c91
8 changed files with 81 additions and 30 deletions

View File

@@ -140,6 +140,12 @@ class RescueOrganization(models.Model):
return Position(latitude=self.location.latitude, longitude=self.location.longitude)
else:
return None
@property
def description_short(self):
if self.description is None:
return ""
if len(self.description) > 200:
return self.description[:200] + f" ... [weiterlesen]({self.get_absolute_url()})"