put things in proper order

This commit is contained in:
Tyrel Souza 2015-09-08 12:43:47 -05:00
parent 9f213f3c1f
commit 3e9a9fee4d
2 changed files with 2 additions and 3 deletions

View File

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

View File

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