summaryrefslogtreecommitdiff
path: root/bak/unused_apps/fieldnotes_/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'bak/unused_apps/fieldnotes_/migrations')
-rw-r--r--bak/unused_apps/fieldnotes_/migrations/0001_initial.py37
-rw-r--r--bak/unused_apps/fieldnotes_/migrations/0002_auto_20190303_1222.py25
-rw-r--r--bak/unused_apps/fieldnotes_/migrations/__init__.py0
3 files changed, 62 insertions, 0 deletions
diff --git a/bak/unused_apps/fieldnotes_/migrations/0001_initial.py b/bak/unused_apps/fieldnotes_/migrations/0001_initial.py
new file mode 100644
index 0000000..cec67fb
--- /dev/null
+++ b/bak/unused_apps/fieldnotes_/migrations/0001_initial.py
@@ -0,0 +1,37 @@
+# Generated by Django 2.1.7 on 2019-03-03 12:13
+
+import django.contrib.gis.db.models.fields
+from django.db import migrations, models
+import django.db.models.deletion
+import django.utils.timezone
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ('locations', '0017_auto_20190217_1849'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='FieldNote',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('title', models.CharField(blank=True, max_length=250)),
+ ('subtitle', models.CharField(blank=True, max_length=250)),
+ ('slug', models.SlugField(blank=True, unique_for_date='pub_date')),
+ ('pub_date', models.DateTimeField(default=django.utils.timezone.now)),
+ ('body_html', models.TextField(blank=True)),
+ ('body_markdown', models.TextField(verbose_name='Note')),
+ ('point', django.contrib.gis.db.models.fields.PointField(blank=True, null=True, srid=4326)),
+ ('status', models.IntegerField(choices=[(0, 'Draft'), (1, 'Published')], default=1)),
+ ('location', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Location')),
+ ],
+ options={
+ 'get_latest_by': 'pub_date',
+ 'ordering': ('-pub_date',),
+ },
+ ),
+ ]
diff --git a/bak/unused_apps/fieldnotes_/migrations/0002_auto_20190303_1222.py b/bak/unused_apps/fieldnotes_/migrations/0002_auto_20190303_1222.py
new file mode 100644
index 0000000..c0e352e
--- /dev/null
+++ b/bak/unused_apps/fieldnotes_/migrations/0002_auto_20190303_1222.py
@@ -0,0 +1,25 @@
+# Generated by Django 2.1.7 on 2019-03-03 12:22
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('photos', '0018_auto_20161130_1218'),
+ ('fieldnotes', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='fieldnote',
+ name='featured_image',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='photos.LuxImage'),
+ ),
+ migrations.AddField(
+ model_name='fieldnote',
+ name='note_type',
+ field=models.IntegerField(choices=[(0, 'Note'), (1, 'Photo')], default=0),
+ ),
+ ]
diff --git a/bak/unused_apps/fieldnotes_/migrations/__init__.py b/bak/unused_apps/fieldnotes_/migrations/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bak/unused_apps/fieldnotes_/migrations/__init__.py