feat: Add link to report

This commit is contained in:
2024-03-22 12:53:39 +01:00
parent 3516ca1d29
commit 434b069636
5 changed files with 49 additions and 35 deletions

View File

@@ -86,6 +86,9 @@ class AdoptionNotice(models.Model):
"""Returns the url to access a detailed page for the animal."""
return reverse('adoption-notice-detail', args=[str(self.id)])
def get_report_url(self):
return reverse('report-adoption-notice', args=[str(self.id)])
def get_photos(self):
"""
First trys to get group photos that are attached to the adoption notice if there is none it trys to fetch