Debian Codegraph @

tests/model_fields/storage.py

raw
1 from django.core.files.storage.filesystem import FileSystemStorage
2
3
4 class NoReadFileSystemStorage(FileSystemStorage):
5 def open(self, *args, **kwargs):
6 raise AssertionError("This storage class does not support reading.")