From 94561826f25c3e0860aaf071dabb1781fdcca2e9 Mon Sep 17 00:00:00 2001 From: lxf Date: Mon, 3 Jan 2022 17:32:58 -0500 Subject: loc: fixed a bug in Track save method --- app/locations/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/locations/models.py b/app/locations/models.py index 9580132..5c5636a 100644 --- a/app/locations/models.py +++ b/app/locations/models.py @@ -523,5 +523,5 @@ class Track(models.Model): self.location = Location.objects.filter(geometry__contains=self.point).get() except Location.DoesNotExist: raise forms.ValidationError("There is no location associated with that point, add it: %sadmin/locations/location/add/" % (settings.BASE_URL)) - super(Walk, self).save(*args, **kwargs) + super(Track, self).save(*args, **kwargs) -- cgit v1.2.3-70-g09d2