beat.web.common.storage module¶
-
class
beat.web.common.storage.OverwriteStorage(*args, **kwargs)[source]¶ Bases:
django.core.files.storage.FileSystemStorage
-
beat.web.common.storage.get_file_content(instance, attr, binary=False)[source]¶ Reads the contents of a Django-FileField attribute
- Parameters
attr (str) – The name of the attribute
- Returns
The contents of the file
- Return type
- Raises
AttributeError – If the field does not exist