diff options
author | luxagraf <sng@luxagraf.net> | 2021-08-15 20:01:58 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2021-08-15 20:01:58 -0400 |
commit | 8e1fe8fc170bd004e76ac189922d8f811880f6ff (patch) | |
tree | 59b86075d4aeda304e8bd79ef8ba63572aaa9493 /app/planner/migrations | |
parent | 72eb519132eb5437dfc3aafeb29446cff4df40d6 (diff) |
plan: added trip to planner so we can plan multiple possibilities and
map to list view using leaflet
Diffstat (limited to 'app/planner/migrations')
-rw-r--r-- | app/planner/migrations/0003_trip.py | 22 | ||||
-rw-r--r-- | app/planner/migrations/0004_auto_20210815_1856.py | 24 |
2 files changed, 46 insertions, 0 deletions
diff --git a/app/planner/migrations/0003_trip.py b/app/planner/migrations/0003_trip.py new file mode 100644 index 0000000..41d410c --- /dev/null +++ b/app/planner/migrations/0003_trip.py @@ -0,0 +1,22 @@ +# Generated by Django 3.2.5 on 2021-08-15 18:55 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('planner', '0002_auto_20210725_1548'), + ] + + operations = [ + migrations.CreateModel( + name='Trip', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=200)), + ('date', models.DateField()), + ('slug', models.SlugField(unique_for_date='pub_date')), + ], + ), + ] diff --git a/app/planner/migrations/0004_auto_20210815_1856.py b/app/planner/migrations/0004_auto_20210815_1856.py new file mode 100644 index 0000000..c896a60 --- /dev/null +++ b/app/planner/migrations/0004_auto_20210815_1856.py @@ -0,0 +1,24 @@ +# Generated by Django 3.2.5 on 2021-08-15 18:56 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('planner', '0003_trip'), + ] + + operations = [ + migrations.AddField( + model_name='camp', + name='slug', + field=models.SlugField(blank=True, null=True, unique_for_date='pub_date'), + ), + migrations.AddField( + model_name='camp', + name='trip', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='planner.trip'), + ), + ] |