From 3e9a9fee4d4a32d511faaaf8765b956c23d060fb Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Tue, 8 Sep 2015 12:43:47 -0500 Subject: [PATCH] put things in proper order --- tracking/management/commands/import_gpx.py | 3 +-- tracking/models.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tracking/management/commands/import_gpx.py b/tracking/management/commands/import_gpx.py index 1eeef3f..561e67a 100644 --- a/tracking/management/commands/import_gpx.py +++ b/tracking/management/commands/import_gpx.py @@ -33,5 +33,4 @@ class Command(BaseCommand): gpx = dict(xmltodict.parse(fd.read()))['gpx'] user = self.user - created, track = Track.objects.get_or_create_from_gpx(gpx, user) - print track + Track.objects.get_or_create_from_gpx(gpx, user) diff --git a/tracking/models.py b/tracking/models.py index 1c113a9..d6e6cb4 100644 --- a/tracking/models.py +++ b/tracking/models.py @@ -36,7 +36,7 @@ class TrackManager(models.Manager): time=pt['time'], elevation=pt['ele'], point=geos.Point(lon, lat)) - return created, track + return track, created class Track(models.Model):