From ae46526a82d604174a33dd3dd9456aa8483cee80 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 25 Jul 2021 16:38:47 -0400 Subject: added basic planner app --- app/planner/migrations/0001_initial.py | 42 +++++++++++++++++++++++ app/planner/migrations/0002_auto_20210725_1548.py | 22 ++++++++++++ app/planner/migrations/__init__.py | 0 3 files changed, 64 insertions(+) create mode 100644 app/planner/migrations/0001_initial.py create mode 100644 app/planner/migrations/0002_auto_20210725_1548.py create mode 100644 app/planner/migrations/__init__.py (limited to 'app/planner/migrations') diff --git a/app/planner/migrations/0001_initial.py b/app/planner/migrations/0001_initial.py new file mode 100644 index 0000000..8ae9744 --- /dev/null +++ b/app/planner/migrations/0001_initial.py @@ -0,0 +1,42 @@ +# Generated by Django 3.2.5 on 2021-07-25 11:56 + +import django.contrib.gis.db.models.fields +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('locations', '0028_auto_20200308_1152'), + ] + + operations = [ + migrations.CreateModel( + name='Camp', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=200)), + ('date_arrive', models.DateField(verbose_name='Arrival Date')), + ('date_depart', models.DateField(blank=True, null=True, verbose_name='Departure Date')), + ('distance_from_previous', models.FloatField(blank=True, null=True)), + ('link', models.CharField(blank=True, max_length=200, null=True)), + ('point', django.contrib.gis.db.models.fields.PointField(blank=True, null=True, srid=4326)), + ('notes', models.TextField(blank=True, null=True)), + ('notes_html', models.TextField(blank=True, null=True)), + ('price', models.FloatField(blank=True, null=True)), + ('site_number', models.FloatField(blank=True, null=True)), + ('has_water', models.BooleanField(default=True)), + ('has_electric', models.BooleanField(default=True)), + ('has_dump', models.BooleanField(default=True)), + ('rating', models.CharField(blank=True, choices=[('1', '1 Star'), ('2', '2 Stars'), ('3', '3 Stars'), ('4', '4 Stars'), ('5', '5 Stars')], max_length=1, null=True)), + ('location', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='locations.location')), + ], + options={ + 'ordering': ('-date_arrive',), + 'get_latest_by': 'date_arrive', + }, + ), + ] diff --git a/app/planner/migrations/0002_auto_20210725_1548.py b/app/planner/migrations/0002_auto_20210725_1548.py new file mode 100644 index 0000000..1edafe5 --- /dev/null +++ b/app/planner/migrations/0002_auto_20210725_1548.py @@ -0,0 +1,22 @@ +# Generated by Django 3.2.5 on 2021-07-25 15:48 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('planner', '0001_initial'), + ] + + operations = [ + migrations.AlterModelOptions( + name='camp', + options={'get_latest_by': 'date_arrive', 'ordering': ('date_arrive',)}, + ), + migrations.AddField( + model_name='camp', + name='map_link', + field=models.CharField(blank=True, max_length=400, null=True), + ), + ] diff --git a/app/planner/migrations/__init__.py b/app/planner/migrations/__init__.py new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3-70-g09d2