summaryrefslogtreecommitdiff
path: root/app/sightings/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/sightings/models.py')
-rw-r--r--app/sightings/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/sightings/models.py b/app/sightings/models.py
index b8d7c6f..7368bd4 100644
--- a/app/sightings/models.py
+++ b/app/sightings/models.py
@@ -93,6 +93,13 @@ class AP(models.Model):
def get_absolute_url(self):
return reverse("sightings:detail", kwargs={"slug": self.slug})
+ @property
+ def seen(self):
+ if self.sighting_set.all():
+ return True
+ else:
+ return False
+
def kind(self):
return self.apclass.kind