diff --git a/byostorage/__init__.py b/byostorage/__init__.py index d0ef97a..0b7c334 100644 --- a/byostorage/__init__.py +++ b/byostorage/__init__.py @@ -1,2 +1,2 @@ -__version__ = 0.2 +__version__ = '0.2.1' default_app_config = 'byostorage.apps.BYOStorageConfig' \ No newline at end of file diff --git a/byostorage/models.py b/byostorage/models.py index 00a630f..351ed85 100644 --- a/byostorage/models.py +++ b/byostorage/models.py @@ -18,7 +18,15 @@ STORAGE_CLASSES.extend([ try: import storages.backends - STORAGE_CLASSES.append('storages.backends.s3boto3.S3Boto3Storage') + + STORAGE_CLASSES.extend([ + 'storages.backends.s3boto3.S3Boto3Storage', + 'storages.backends.azure_storage.AzureStorage', + 'storages.backends.dropbox.DropBoxStorage', + 'storages.backends.ftp.FTPStorage', + 'storages.backends.gcloud.GoogleCloudStorage', + 'storages.backends.sftpstorage.SFTPStorage', + ]) except ImportError: pass @@ -53,6 +61,7 @@ class UserStorage(models.Model): help_text="Storage class for this instance") settings_data = models.TextField( validators=[validate_json], + default='{}', help_text="JSON dict with key/value settings") def instance(self):