# -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-05-21 23:14
from __future__ import unicode_literals

from django.db import migrations, models
import froide.document.models
import froide.helper.storage
import functools


class Migration(migrations.Migration):

    dependencies = [
        ('document', '0005_auto_20180521_2048'),
    ]

    operations = [
        migrations.AlterField(
            model_name='document',
            name='pdf_file',
            field=models.FileField(blank=True, max_length=255, storage=froide.helper.storage.OverwriteStorage(), upload_to=froide.document.models.get_document_path),
        ),
        migrations.AlterField(
            model_name='page',
            name='image',
            field=models.ImageField(max_length=255, storage=froide.helper.storage.OverwriteStorage(), upload_to=functools.partial(froide.document.models.get_page_filename, *(), **{'size': 'original'})),
        ),
        migrations.AlterField(
            model_name='page',
            name='image_large',
            field=models.ImageField(max_length=255, storage=froide.helper.storage.OverwriteStorage(), upload_to=functools.partial(froide.document.models.get_page_filename, *(), **{'size': 'large'})),
        ),
        migrations.AlterField(
            model_name='page',
            name='image_normal',
            field=models.ImageField(max_length=255, storage=froide.helper.storage.OverwriteStorage(), upload_to=functools.partial(froide.document.models.get_page_filename, *(), **{'size': 'normal'})),
        ),
        migrations.AlterField(
            model_name='page',
            name='image_small',
            field=models.ImageField(max_length=255, storage=froide.helper.storage.OverwriteStorage(), upload_to=functools.partial(froide.document.models.get_page_filename, *(), **{'size': 'small'})),
        ),
    ]

Add storage to document image fields