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)[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: str Raises: AttributeError– If the field does not exist