Skip to content

Commit 48bd502

Browse files
committed
Allow allocation request changes on test data set.
1 parent eec2d5f commit 48bd502

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

coldfront/core/utils/management/commands/load_test_data.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ def handle(self, *args, **options):
273273
status=AllocationStatusChoice.objects.get(name='Active'),
274274
start_date=start_date,
275275
end_date=end_date,
276+
is_changeable=True,
276277
justification='I need access to my nodes.'
277278
)
278279

@@ -305,6 +306,7 @@ def handle(self, *args, **options):
305306
status=AllocationStatusChoice.objects.get(name='Active'),
306307
start_date=start_date,
307308
end_date=datetime.datetime.now() + relativedelta(days=10),
309+
is_changeable=True,
308310
justification='I need access to university cluster.'
309311
)
310312

@@ -359,6 +361,7 @@ def handle(self, *args, **options):
359361
start_date=start_date,
360362
end_date=end_date,
361363
quantity=10,
364+
is_changeable=True,
362365
justification='I need extra storage.'
363366
)
364367

@@ -378,6 +381,7 @@ def handle(self, *args, **options):
378381
status=AllocationStatusChoice.objects.get(name='Active'),
379382
start_date=start_date,
380383
end_date=end_date,
384+
is_changeable=True,
381385
justification='I need compute time on metered cluster.'
382386
)
383387
allocation_obj.resources.add(
@@ -484,6 +488,7 @@ def handle(self, *args, **options):
484488
status=AllocationStatusChoice.objects.get(name='Active'),
485489
start_date=start_date,
486490
end_date=end_date,
491+
is_changeable=True,
487492
justification='Need to host my own site.'
488493
)
489494

@@ -520,6 +525,7 @@ def handle(self, *args, **options):
520525
status=AllocationStatusChoice.objects.get(name='Active'),
521526
start_date=start_date,
522527
end_date=end_date,
528+
is_changeable=True,
523529
justification='Need extra storage for webserver.'
524530
)
525531

0 commit comments

Comments
 (0)