<commit_before><commit_msg>Use hashed filename storage in attachment model<commit_after># -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-04-05 14:26
from __future__ import unicode_literals

from django.db import migrations, models
import froide.foirequest.models.attachment
import froide.helper.storage


class Migration(migrations.Migration):

    dependencies = [
        ('foirequest', '0016_foiproject_publicbodies'),
    ]

    operations = [
        migrations.AlterField(
            model_name='foiattachment',
            name='file',
            field=models.FileField(max_length=255, storage=froide.helper.storage.HashedFilenameStorage(), upload_to=froide.foirequest.models.attachment.upload_to, verbose_name='File'),
        ),
    ]

{'fraction_non_alphanumeric': 0.10686015831134564, 'fraction_numerical': 0.0316622691292876, 'mean_word_length': 3.7735849056603774, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6537219', 'n_tokens_mistral': 244, 'n_tokens_neox': 220, 'n_words': 42}