Skip to content

Commit

Permalink
In Django 5.1 DEFAULT_FILE_STORAGE has been removed
Browse files Browse the repository at this point in the history
replace this setting with STORAGES["default"]["BACKEND"]
  • Loading branch information
atodorov committed Jan 6, 2025
1 parent a66a7cc commit 39b2e20
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tcms_settings_dir/multi_tenant.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020-2024 Alexander Todorov <[email protected]>
# Copyright (c) 2020-2025 Alexander Todorov <[email protected]>
# Copyright (c) 2022 Ivajlo Karabojkov <[email protected]>
#
# Licensed under GNU Affero General Public License v3 or later (AGPLv3+)
Expand All @@ -16,7 +16,11 @@


# attachments storage
DEFAULT_FILE_STORAGE = "tcms_tenants.storage.TenantFileSystemStorage"
STORAGES["default"][ # noqa: F821
"BACKEND"
] = "tcms_tenants.storage.TenantFileSystemStorage"


MULTITENANT_RELATIVE_MEDIA_ROOT = "tenant/%s"


Expand Down

0 comments on commit 39b2e20

Please sign in to comment.