From 96d80eaf238045faba45cd4b64a8d93d19a98a69 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 20 Mar 2016 21:30:28 -0400 Subject: Wrote image app to work with other models. Broke galleries badly, need to fix before posting again. Also major admin image move to pull off. --- app/photos/migrations/0004_luximage_alt.py | 20 +++++++++++++++ app/photos/migrations/0005_auto_20160318_1244.py | 25 ++++++++++++++++++ app/photos/migrations/0006_auto_20160318_2047.py | 30 ++++++++++++++++++++++ app/photos/migrations/0007_auto_20160320_0802.py | 20 +++++++++++++++ app/photos/migrations/0008_luximagesize_quality.py | 21 +++++++++++++++ app/photos/migrations/0009_auto_20160320_0907.py | 20 +++++++++++++++ 6 files changed, 136 insertions(+) create mode 100644 app/photos/migrations/0004_luximage_alt.py create mode 100644 app/photos/migrations/0005_auto_20160318_1244.py create mode 100644 app/photos/migrations/0006_auto_20160318_2047.py create mode 100644 app/photos/migrations/0007_auto_20160320_0802.py create mode 100644 app/photos/migrations/0008_luximagesize_quality.py create mode 100644 app/photos/migrations/0009_auto_20160320_0907.py (limited to 'app/photos/migrations') diff --git a/app/photos/migrations/0004_luximage_alt.py b/app/photos/migrations/0004_luximage_alt.py new file mode 100644 index 0000000..ecbaf56 --- /dev/null +++ b/app/photos/migrations/0004_luximage_alt.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2016-03-16 22:45 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('photos', '0003_luxgallery_caption_style'), + ] + + operations = [ + migrations.AddField( + model_name='luximage', + name='alt', + field=models.CharField(blank=True, max_length=300, null=True), + ), + ] diff --git a/app/photos/migrations/0005_auto_20160318_1244.py b/app/photos/migrations/0005_auto_20160318_1244.py new file mode 100644 index 0000000..584714e --- /dev/null +++ b/app/photos/migrations/0005_auto_20160318_1244.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2016-03-18 12:44 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('photos', '0004_luximage_alt'), + ] + + operations = [ + migrations.AddField( + model_name='luximage', + name='photo_credit_source', + field=models.CharField(blank=True, max_length=300, null=True), + ), + migrations.AddField( + model_name='luximage', + name='photo_credit_url', + field=models.CharField(blank=True, max_length=300, null=True), + ), + ] diff --git a/app/photos/migrations/0006_auto_20160318_2047.py b/app/photos/migrations/0006_auto_20160318_2047.py new file mode 100644 index 0000000..7cf0a4f --- /dev/null +++ b/app/photos/migrations/0006_auto_20160318_2047.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2016-03-18 20:47 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('photos', '0005_auto_20160318_1244'), + ] + + operations = [ + migrations.CreateModel( + name='LuxImageSize', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('size', models.IntegerField(max_length=5)), + ], + options={ + 'verbose_name_plural': 'Image Sizes', + }, + ), + migrations.AddField( + model_name='luximage', + name='sizes', + field=models.ManyToManyField(to='photos.LuxImageSize'), + ), + ] diff --git a/app/photos/migrations/0007_auto_20160320_0802.py b/app/photos/migrations/0007_auto_20160320_0802.py new file mode 100644 index 0000000..474bd42 --- /dev/null +++ b/app/photos/migrations/0007_auto_20160320_0802.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2016-03-20 08:02 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('photos', '0006_auto_20160318_2047'), + ] + + operations = [ + migrations.AlterField( + model_name='luximagesize', + name='size', + field=models.IntegerField(), + ), + ] diff --git a/app/photos/migrations/0008_luximagesize_quality.py b/app/photos/migrations/0008_luximagesize_quality.py new file mode 100644 index 0000000..06dc0cc --- /dev/null +++ b/app/photos/migrations/0008_luximagesize_quality.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2016-03-20 08:47 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('photos', '0007_auto_20160320_0802'), + ] + + operations = [ + migrations.AddField( + model_name='luximagesize', + name='quality', + field=models.IntegerField(default=65), + preserve_default=False, + ), + ] diff --git a/app/photos/migrations/0009_auto_20160320_0907.py b/app/photos/migrations/0009_auto_20160320_0907.py new file mode 100644 index 0000000..ccfebf5 --- /dev/null +++ b/app/photos/migrations/0009_auto_20160320_0907.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9 on 2016-03-20 09:07 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('photos', '0008_luximagesize_quality'), + ] + + operations = [ + migrations.RenameField( + model_name='luximagesize', + old_name='size', + new_name='width', + ), + ] -- cgit v1.2.3