Tidying up all the covers craziness and storages.
[wolnelektury.git] / src / catalogue / migrations / 0014_auto_20170627_1442.py
index e386c3c..75d35c3 100644 (file)
@@ -2,7 +2,6 @@
 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
 #
 from django.db import migrations, models
-import fnpdjango.storage
 import catalogue.models.bookmedia
 
 
@@ -16,6 +15,6 @@ class Migration(migrations.Migration):
         migrations.AlterField(
             model_name='bookmedia',
             name='file',
-            field=models.FileField(storage=fnpdjango.storage.BofhFileSystemStorage(), upload_to=catalogue.models.bookmedia._file_upload_to, max_length=600, verbose_name='file'),
+            field=models.FileField(storage=catalogue.models.bookmedia.get_storage, upload_to=catalogue.models.bookmedia._file_upload_to, max_length=600, verbose_name='file'),
         ),
     ]