Skip to content

Commit 2d28b59

Browse files
committed
add missing config
Signed-off-by: Simon Leary <[email protected]>
1 parent 72dbd32 commit 2d28b59

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

coldfront/config/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
ALLOCATION_FUNCS_ON_EXPIRE = [
4646
"coldfront.core.allocation.utils.test_allocation_function",
4747
]
48+
ALLOCATION_RESOURCE_ORDERING = ENV.list("ALLOCATION_RESOURCE_ORDERING", default=["-is_allocatable", "name"])
4849

4950
# This is in days
5051
ALLOCATION_DEFAULT_ALLOCATION_LENGTH = ENV.int("ALLOCATION_DEFAULT_ALLOCATION_LENGTH", default=365)

coldfront/core/allocation/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323

2424
logger = logging.getLogger(__name__)
2525

26-
ALLOCATION_ATTRIBUTE_VIEW_LIST = import_from_settings("ALLOCATION_ATTRIBUTE_VIEW_LIST", [])
27-
ALLOCATION_FUNCS_ON_EXPIRE = import_from_settings("ALLOCATION_FUNCS_ON_EXPIRE", [])
28-
ALLOCATION_RESOURCE_ORDERING = import_from_settings("ALLOCATION_RESOURCE_ORDERING", ["-is_allocatable", "name"])
26+
ALLOCATION_ATTRIBUTE_VIEW_LIST = import_from_settings("ALLOCATION_ATTRIBUTE_VIEW_LIST")
27+
ALLOCATION_FUNCS_ON_EXPIRE = import_from_settings("ALLOCATION_FUNCS_ON_EXPIRE")
28+
ALLOCATION_RESOURCE_ORDERING = import_from_settings("ALLOCATION_RESOURCE_ORDERING")
2929

3030

3131
class AllocationPermission(Enum):

0 commit comments

Comments
 (0)