def save(self, *args, **kwargs): super(NewsletterTemplate, self).save(*args, **kwargs) if self.html_file: set_s3_file_permission(self.html_file.file, public=True) if self.zip_file: set_s3_file_permission(self.zip_file.file, public=True) #extract and serve files in zip extract_files(self)
def save(self, *args, **kwargs): super(NewsletterTemplate, self).save(*args, **kwargs) if self.html_file: set_s3_file_permission(self.html_file.file, public=True) if self.zip_file: set_s3_file_permission(self.zip_file.file, public=True) #extract and serve files in zip extract_files(self)