|
@@ -1,10 +1,10 @@
|
|
|
# -*- coding: utf-8 -*-
|
|
|
-# Generated by Django 1.11.17 on 2018-12-27 17:35
|
|
|
+# Generated by Django 1.11.17 on 2018-12-28 23:20
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
import django.db.models.deletion
|
|
|
-import misago.themes.utils
|
|
|
+import misago.themes.uploadto
|
|
|
import mptt.fields
|
|
|
|
|
|
|
|
@@ -22,11 +22,12 @@ class Migration(migrations.Migration):
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
('name', models.CharField(max_length=255)),
|
|
|
('url', models.URLField(blank=True, max_length=255, null=True)),
|
|
|
- ('file', models.FileField(blank=True, max_length=255, null=True, upload_to=misago.themes.utils.upload_css_to)),
|
|
|
- ('hash', models.CharField(max_length=12)),
|
|
|
- ('size', models.PositiveIntegerField()),
|
|
|
+ ('source_file', models.FileField(blank=True, max_length=255, null=True, upload_to=misago.themes.uploadto.upload_css_source_to)),
|
|
|
+ ('source_hash', models.CharField(blank=True, max_length=8, null=True)),
|
|
|
+ ('file', models.FileField(blank=True, max_length=255, null=True, upload_to=misago.themes.uploadto.upload_css_to)),
|
|
|
+ ('hash', models.CharField(blank=True, max_length=8, null=True)),
|
|
|
+ ('size', models.PositiveIntegerField(default=0)),
|
|
|
('order', models.IntegerField(default=0)),
|
|
|
- ('is_enabled', models.BooleanField(default=True)),
|
|
|
('modified_on', models.DateTimeField(auto_now=True)),
|
|
|
],
|
|
|
options={
|
|
@@ -38,7 +39,7 @@ class Migration(migrations.Migration):
|
|
|
fields=[
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
('name', models.CharField(max_length=255)),
|
|
|
- ('file', models.FileField(max_length=255, upload_to=misago.themes.utils.upload_font_to)),
|
|
|
+ ('file', models.FileField(max_length=255, upload_to=misago.themes.uploadto.upload_font_to)),
|
|
|
('hash', models.CharField(max_length=12)),
|
|
|
('type', models.CharField(max_length=255)),
|
|
|
('size', models.PositiveIntegerField()),
|
|
@@ -53,13 +54,13 @@ class Migration(migrations.Migration):
|
|
|
fields=[
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
('name', models.CharField(max_length=255)),
|
|
|
- ('file', models.ImageField(height_field='height', max_length=255, upload_to=misago.themes.utils.upload_image_to, width_field='width')),
|
|
|
- ('hash', models.CharField(max_length=12)),
|
|
|
+ ('file', models.ImageField(height_field='height', max_length=255, upload_to=misago.themes.uploadto.upload_image_to, width_field='width')),
|
|
|
+ ('hash', models.CharField(max_length=8)),
|
|
|
('type', models.CharField(max_length=255)),
|
|
|
('width', models.PositiveIntegerField()),
|
|
|
('height', models.PositiveIntegerField()),
|
|
|
('size', models.PositiveIntegerField()),
|
|
|
- ('thumbnail', models.ImageField(max_length=255, upload_to=misago.themes.utils.upload_image_thumbnail_to)),
|
|
|
+ ('thumbnail', models.ImageField(max_length=255, upload_to=misago.themes.uploadto.upload_image_thumbnail_to)),
|
|
|
('modified_on', models.DateTimeField(auto_now=True)),
|
|
|
],
|
|
|
options={
|
|
@@ -71,7 +72,7 @@ class Migration(migrations.Migration):
|
|
|
fields=[
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
('name', models.CharField(max_length=255)),
|
|
|
- ('dirname', models.CharField(default=misago.themes.utils.generate_theme_dirname, max_length=8)),
|
|
|
+ ('dirname', models.CharField(default=misago.themes.uploadto.generate_theme_dirname, max_length=8)),
|
|
|
('is_default', models.BooleanField(default=False)),
|
|
|
('is_active', models.BooleanField(default=False)),
|
|
|
('version', models.CharField(blank=True, max_length=255, null=True)),
|