summaryrefslogtreecommitdiff
path: root/bak/unused_apps/photos/migrations/0001_initial.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-07-28 13:39:02 -0500
committerluxagraf <sng@luxagraf.net>2023-07-28 13:39:02 -0500
commit9a620cf42bf1fe6977e378bd834b41ff4a593dde (patch)
treecf41a0582681cecaf88a30bfe409f9c2be57972a /bak/unused_apps/photos/migrations/0001_initial.py
parent6e5897117124cd60ae81efb1574c6347f48e60e5 (diff)
main: removed some apps I wasn't using and added bak to git to preserve
a copy of old apps
Diffstat (limited to 'bak/unused_apps/photos/migrations/0001_initial.py')
-rw-r--r--bak/unused_apps/photos/migrations/0001_initial.py137
1 files changed, 137 insertions, 0 deletions
diff --git a/bak/unused_apps/photos/migrations/0001_initial.py b/bak/unused_apps/photos/migrations/0001_initial.py
new file mode 100644
index 0000000..711af1d
--- /dev/null
+++ b/bak/unused_apps/photos/migrations/0001_initial.py
@@ -0,0 +1,137 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.9 on 2015-12-11 19:33
+from __future__ import unicode_literals
+
+import django.contrib.gis.db.models.fields
+from django.db import migrations, models
+import django.db.models.deletion
+import photos.models
+import taggit.managers
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ('taggit', '0002_auto_20150616_2121'),
+ #('locations', '__first__'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='LuxGallery',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('title', models.CharField(blank=True, max_length=300)),
+ ('description', models.TextField(blank=True, null=True)),
+ ('slug', models.CharField(blank=True, max_length=300)),
+ ('thumb', models.CharField(blank=True, max_length=300)),
+ ('pub_date', models.DateTimeField(null=True)),
+ ('point', django.contrib.gis.db.models.fields.PointField(blank=True, null=True, srid=4326)),
+ ('is_public', models.BooleanField(default=True)),
+ ],
+ options={
+ 'verbose_name_plural': 'Galleries',
+ 'get_latest_by': 'pub_date',
+ 'ordering': ('-pub_date', 'id'),
+ },
+ ),
+ migrations.CreateModel(
+ name='LuxImage',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('image', models.FileField(blank=True, null=True, upload_to=photos.models.get_upload_path)),
+ ('title', models.CharField(blank=True, max_length=300, null=True)),
+ ('caption', models.TextField(blank=True, null=True)),
+ ('pub_date', models.DateTimeField()),
+ ('exif_raw', models.TextField(blank=True, null=True)),
+ ('exif_aperture', models.CharField(blank=True, max_length=50, null=True)),
+ ('exif_make', models.CharField(blank=True, max_length=50, null=True)),
+ ('exif_model', models.CharField(blank=True, max_length=50, null=True)),
+ ('exif_exposure', models.CharField(blank=True, max_length=50, null=True)),
+ ('exif_iso', models.CharField(blank=True, max_length=50, null=True)),
+ ('exif_focal_length', models.CharField(blank=True, max_length=50, null=True)),
+ ('exif_lens', models.CharField(blank=True, max_length=50, null=True)),
+ ('exif_date', models.DateTimeField(blank=True, null=True)),
+ ('height', models.CharField(blank=True, max_length=6, null=True)),
+ ('width', models.CharField(blank=True, max_length=6, null=True)),
+ ('point', django.contrib.gis.db.models.fields.PointField(blank=True, null=True, srid=4326)),
+ ('is_public', models.BooleanField(default=True)),
+ ('is_video', models.BooleanField(default=False)),
+ ('flickr_id', models.CharField(blank=True, max_length=80, null=True)),
+ ('location', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Location')),
+ ],
+ options={
+ 'verbose_name_plural': 'Images',
+ 'get_latest_by': 'pub_date',
+ 'ordering': ('-pub_date', 'id'),
+ },
+ ),
+ migrations.CreateModel(
+ name='Photo',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('description', models.TextField(blank=True, null=True)),
+ ('title', models.CharField(blank=True, max_length=300)),
+ ('pub_date', models.DateTimeField()),
+ ('exif_aperture', models.CharField(blank=True, max_length=50, null=True)),
+ ('exif_make', models.CharField(blank=True, max_length=50, null=True)),
+ ('exif_model', models.CharField(blank=True, max_length=50, null=True)),
+ ('exif_exposure', models.CharField(blank=True, max_length=50, null=True)),
+ ('exif_iso', models.CharField(blank=True, max_length=50, null=True)),
+ ('exif_focal_length', models.CharField(blank=True, max_length=50, null=True)),
+ ('exif_lens', models.CharField(blank=True, max_length=50, null=True)),
+ ('exif_date', models.DateTimeField()),
+ ('flickr_id', models.CharField(max_length=300)),
+ ('flickr_owner', models.CharField(max_length=20)),
+ ('flickr_server', models.IntegerField()),
+ ('flickr_farm', models.IntegerField()),
+ ('flickr_secret', models.CharField(max_length=50)),
+ ('flickr_originalsecret', models.CharField(max_length=50)),
+ ('lon', models.FloatField(help_text='Longitude of centerpoint', null=True, verbose_name='Longitude')),
+ ('lat', models.FloatField(help_text='Latitude of centerpoint', null=True, verbose_name='Latitude')),
+ ('slideshowimage_width', models.CharField(blank=True, max_length=4, null=True)),
+ ('slideshowimage_height', models.CharField(blank=True, max_length=4, null=True)),
+ ('slideshowimage_margintop', models.CharField(blank=True, max_length=4, null=True)),
+ ('slideshowimage_marginleft', models.CharField(blank=True, max_length=4, null=True)),
+ ('is_public', models.BooleanField(default=True)),
+ ('location', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Location')),
+ ('region', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Region')),
+ ('tags', taggit.managers.TaggableManager(blank=True, help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')),
+ ],
+ options={
+ 'ordering': ('-pub_date',),
+ },
+ ),
+ migrations.CreateModel(
+ name='PhotoGallery',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('set_id', models.CharField(blank=True, max_length=300)),
+ ('set_title', models.CharField(blank=True, max_length=300)),
+ ('set_desc', models.TextField(blank=True, null=True)),
+ ('set_slug', models.CharField(blank=True, max_length=300)),
+ ('primary', models.CharField(blank=True, max_length=300)),
+ ('pub_date', models.DateTimeField(null=True)),
+ ('location', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Location')),
+ ('photos', models.ManyToManyField(to='photos.Photo')),
+ ('region', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Region')),
+ ],
+ options={
+ 'verbose_name_plural': 'Photo Galleries',
+ 'get_latest_by': 'pub_date',
+ 'ordering': ('-pub_date', 'id'),
+ },
+ ),
+ migrations.AddField(
+ model_name='luxgallery',
+ name='image',
+ field=models.ManyToManyField(to='photos.LuxImage'),
+ ),
+ migrations.AddField(
+ model_name='luxgallery',
+ name='location',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Location'),
+ ),
+ ]