I’m using a custom storage for saving files to the cloud. I’d like the ability to pass in some additional information, so added a parameter to the class (a summary of the code is below). My question: is this a good idea, or is this likely to cause a problem with Django?
class MyModel(models.Model): my_file = models.FileField(storage=MyStorage("some text"))
class MyStorage(Storage): def __init__(self, my_parameter): self.my_parameter = my_parameter