Commits

David Bennett  committed 4018619

Apparently upload_to is required.

  • Participants
  • Parent commits 97fe74e

Comments (0)

Files changed (2)

File private_media/tests/models.py

 
 
 class Storage(models.Model):
-    normal = PrivateFileField()
+    normal = PrivateFileField(upload_to="tests")

File private_media/tests/tests.py

         shutil.rmtree(settings.MEDIA_ROOT)
 
     def test_file_exists(self):
-        dirs, files = default_storage.listdir()
+        dirs, files = default_storage.listdir("tests")
         self.assertEqual(
             sorted(files), ["django_test.txt"]
         )