feat: Add species specific URL to allow faster checking if new animals exist in this rescue org

This commit is contained in:
2025-01-05 21:04:27 +01:00
parent 4ef9da953c
commit fb9c78d96a
3 changed files with 39 additions and 1 deletions

View File

@@ -861,3 +861,11 @@ class Timestamp(models.Model):
def ___str__(self):
return f"[{self.key}] - {self.timestamp.strftime('%H:%M:%S %d-%m-%Y ')} - {self.data}"
class SpeciesSpecificURL(models.Model):
"""
Model that allows to specify a URL for a rescue organization where a certain species can be found
"""
species = models.ForeignKey(Species, on_delete=models.CASCADE, verbose_name=_("Tierart"))
rescues_organization = models.ForeignKey(RescueOrganization, on_delete=models.CASCADE, verbose_name=_("Tierschutzorganisation"))
url = models.URLField(verbose_name=_("Tierartspezifische URL"))