refactor(bulma): move contact details to partial

This commit is contained in:
2025-05-25 11:04:18 +02:00
parent 736f645bf0
commit 3c60782ae7
3 changed files with 69 additions and 27 deletions

View File

@@ -198,6 +198,14 @@ class RescueOrganization(models.Model):
def species_urls(self):
return SpeciesSpecificURL.objects.filter(organization=self)
@property
def has_contact_data(self):
"""
Returns true if at least one type of contact data is available.
"""
return self.instagram or self.facebook or self.website or self.phone_number or self.email or self.fediverse_profile
# Admins can perform all actions and have the highest trust associated with them
# Moderators can make moderation decisions regarding the deletion of content