def _require_file(self):
if not getattr(self, "_file", None):
before_access.send(sender=self, file=self)
def generate(self, force=False):
Generate the file. If ``force`` is ``True``, the file will be generated
After Change
def _require_file(self):
if not getattr(self, "_file", None):
content_required.send(sender=self, file=self)
self._file = self.storage.open(self.name, "rb")
// The ``path`` and ``url`` properties are overridden so as to not call
// ``_require_file``, which is only meant to be called when the file object