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):