diff options
author | luxagraf <sng@luxagraf.net> | 2021-07-25 16:38:47 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2021-07-25 16:38:47 -0400 |
commit | ae46526a82d604174a33dd3dd9456aa8483cee80 (patch) | |
tree | d368f83d15ce6528e7e56746772a7380616bce2b /app/planner/migrations | |
parent | c3672978183dbc0cb0bf728b3dfadf12dd831a60 (diff) |
added basic planner app
Diffstat (limited to 'app/planner/migrations')
-rw-r--r-- | app/planner/migrations/0001_initial.py | 42 | ||||
-rw-r--r-- | app/planner/migrations/0002_auto_20210725_1548.py | 22 | ||||
-rw-r--r-- | app/planner/migrations/__init__.py | 0 |
3 files changed, 64 insertions, 0 deletions
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 --- /dev/null +++ b/app/planner/migrations/__init__.py |