From 0fcc0e5d11dc33954af71fdff0f422e47dfb9f91 Mon Sep 17 00:00:00 2001 From: moanos Date: Mon, 30 Sep 2024 15:58:51 +0200 Subject: [PATCH] feat: add docu --- src/fellchensammlung/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fellchensammlung/models.py b/src/fellchensammlung/models.py index f40d03e..f3123c0 100644 --- a/src/fellchensammlung/models.py +++ b/src/fellchensammlung/models.py @@ -210,13 +210,15 @@ class AdoptionNotice(models.Model): return self.description[:200] + f" ... [weiterlesen]({self.get_absolute_url()})" def get_absolute_url(self): - """Returns the url to access a detailed page for the animal.""" + """Returns the url to access a detailed page for the adoption notice.""" return reverse('adoption-notice-detail', args=[str(self.id)]) def get_report_url(self): + """Returns the url to report an adoption notice.""" return reverse('report-adoption-notice', args=[str(self.id)]) def get_subscriptions(self): + # returns all subscriptions to that adoption notice return Subscriptions.objects.filter(adoption_notice=self) def get_photos(self):