From 9251b1c1149b3d6abd779ab8b8c9e709ec09bdbf Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 4 Jul 2019 08:17:40 -0500 Subject: added guides to main admin --- app/sightings/models.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/sightings') diff --git a/app/sightings/models.py b/app/sightings/models.py index 7527615..2a14e85 100644 --- a/app/sightings/models.py +++ b/app/sightings/models.py @@ -201,6 +201,8 @@ class Sighting(models.Model): self.location = Location.objects.filter(geometry__contains=self.point).get() except Location.MultipleObjectsReturned: for l in Location.objects.filter(geometry__contains=self.point): + print(l) + print(l.parent) if l.parent: self.location = l break -- cgit v1.2.3-70-g09d2