Fixed the check for empty installations

This commit is contained in:
Daniel Quinn 2016-03-05 12:43:05 +00:00
parent 034b96277c
commit bfad4560e1

View File

@ -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(