From bfad4560e139257ec81ccd284984001ee53bfce9 Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Sat, 5 Mar 2016 12:43:05 +0000 Subject: [PATCH] Fixed the check for empty installations --- src/documents/migrations/0012_auto_20160305_0040.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/migrations/0012_auto_20160305_0040.py b/src/documents/migrations/0012_auto_20160305_0040.py index 618ace5d8..62a5c65bc 100644 --- a/src/documents/migrations/0012_auto_20160305_0040.py +++ b/src/documents/migrations/0012_auto_20160305_0040.py @@ -40,7 +40,7 @@ def move_documents_and_create_thumbnails(apps, schema_editor): documents = os.listdir(os.path.join(settings.MEDIA_ROOT, "documents")) - if not documents: + if set(documents) == {"originals", "thumbnails"}: return print(colourise(