summaryrefslogtreecommitdiff
path: root/app/locations/migrations/0019_gpxfile_gpxpoint_gpxtrack.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-12-29 18:19:26 -0500
committerluxagraf <sng@luxagraf.net>2019-12-29 18:19:26 -0500
commit09abece4982e8dceabe1dd8d678639205a4a6208 (patch)
tree8b27a3369ae6f61e7f0ed52d64e261b556157f00 /app/locations/migrations/0019_gpxfile_gpxpoint_gpxtrack.py
parente47d256783c9d466ab34b0632c70ac767011f91e (diff)
Added new GPX tracking model and Walk to locations
Diffstat (limited to 'app/locations/migrations/0019_gpxfile_gpxpoint_gpxtrack.py')
-rw-r--r--app/locations/migrations/0019_gpxfile_gpxpoint_gpxtrack.py43
1 files changed, 43 insertions, 0 deletions
diff --git a/app/locations/migrations/0019_gpxfile_gpxpoint_gpxtrack.py b/app/locations/migrations/0019_gpxfile_gpxpoint_gpxtrack.py
new file mode 100644
index 0000000..b8e698a
--- /dev/null
+++ b/app/locations/migrations/0019_gpxfile_gpxpoint_gpxtrack.py
@@ -0,0 +1,43 @@
+# Generated by Django 2.1.2 on 2019-12-29 15:59
+
+import django.contrib.gis.db.models.fields
+from django.db import migrations, models
+import django.db.models.deletion
+import locations.models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('locations', '0018_auto_20190414_2124'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='GPXFile',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('title', models.CharField(max_length=300)),
+ ('raw_data', models.TextField()),
+ ('gpx_file', models.FileField(blank=True, upload_to=locations.models.get_gpx_folder)),
+ ],
+ ),
+ migrations.CreateModel(
+ name='GPXPoint',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('name', models.CharField(blank=True, max_length=50, verbose_name='Name')),
+ ('description', models.CharField(blank=True, max_length=250, verbose_name='Description')),
+ ('point', django.contrib.gis.db.models.fields.PointField(srid=4326)),
+ ('gpx_file', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='locations.GPXFile')),
+ ],
+ ),
+ migrations.CreateModel(
+ name='GPXTrack',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('track', django.contrib.gis.db.models.fields.MultiLineStringField(srid=4326)),
+ ('gpx_file', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='locations.GPXFile')),
+ ],
+ ),
+ ]