|
1 | 1 | diff --git a/coldfront/core/allocation/management/commands/add_allocation_defaults.py b/coldfront/core/allocation/management/commands/add_allocation_defaults.py |
2 | | -index ca5c4fc..556eeb2 100644 |
| 2 | +index 9f7dc01..3fd2fa7 100644 |
3 | 3 | --- a/coldfront/core/allocation/management/commands/add_allocation_defaults.py |
4 | 4 | +++ b/coldfront/core/allocation/management/commands/add_allocation_defaults.py |
5 | | -@@ -16,7 +16,7 @@ class Command(BaseCommand): |
6 | | - 'Attribute Expanded Text'): |
7 | | - AttributeType.objects.get_or_create(name=attribute_type) |
8 | | - |
9 | | -- for choice in ('Active', 'Denied', 'Expired', |
10 | | -+ for choice in ('Active (Needs Renewal)', 'Active', 'Denied', 'Expired', |
11 | | - 'New', 'Paid', 'Payment Pending', |
12 | | - 'Payment Requested', 'Payment Declined', |
13 | | - 'Renewal Requested', 'Revoked', 'Unpaid',): |
| 5 | +@@ -22,6 +22,7 @@ class Command(BaseCommand): |
| 6 | + |
| 7 | + for choice in ( |
| 8 | + "Active", |
| 9 | ++ "Active (Needs Renewal)", |
| 10 | + "Denied", |
| 11 | + "Expired", |
| 12 | + "New", |
14 | 13 | diff --git a/coldfront/core/allocation/tasks.py b/coldfront/core/allocation/tasks.py |
15 | | -index e1a37fc..ba96800 100644 |
| 14 | +index 883420a..3247ce3 100644 |
16 | 15 | --- a/coldfront/core/allocation/tasks.py |
17 | 16 | +++ b/coldfront/core/allocation/tasks.py |
18 | | -@@ -29,7 +29,7 @@ EMAIL_ADMIN_LIST = import_from_settings('EMAIL_ADMIN_LIST') |
| 17 | +@@ -36,7 +36,7 @@ EMAIL_ALLOCATION_EULA_IGNORE_OPT_OUT = import_from_settings("EMAIL_ALLOCATION_EU |
| 18 | + |
| 19 | + |
19 | 20 | def update_statuses(): |
20 | | - |
21 | | - expired_status_choice = AllocationStatusChoice.objects.get( |
22 | | -- name='Expired') |
23 | | -+ name='Active (Needs Renewal)') |
| 21 | +- expired_status_choice = AllocationStatusChoice.objects.get(name="Expired") |
| 22 | ++ expired_status_choice = AllocationStatusChoice.objects.get(name="Active (Needs Renewal)") |
24 | 23 | allocations_to_expire = Allocation.objects.filter( |
25 | | - status__name__in=['Active','Payment Pending','Payment Requested', 'Unpaid',], end_date__lt=datetime.datetime.now().date()) |
26 | | - for sub_obj in allocations_to_expire: |
| 24 | + status__name__in=[ |
| 25 | + "Active", |
0 commit comments