-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce Expiration Date for UEI Validation Waivers (#4106)
* Enforce expiration date for UEI validation waivers * Include `justification` in UEI validation admin * Add a test to ensure expired waivers don't work * Whoops, opposite assetion.
- Loading branch information
Showing
5 changed files
with
69 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
backend/audit/migrations/0011_ueivalidationwaiver_expiration_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Generated by Django 5.0.4 on 2024-07-23 15:54 | ||
|
||
import audit.models.models | ||
import django.utils.timezone | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("audit", "0010_alter_ueivalidationwaiver_uei"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="ueivalidationwaiver", | ||
name="expiration", | ||
field=models.DateTimeField( | ||
default=audit.models.models.one_month_from_today, | ||
verbose_name="When the waiver will expire", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="ueivalidationwaiver", | ||
name="timestamp", | ||
field=models.DateTimeField( | ||
default=django.utils.timezone.now, | ||
verbose_name="When the waiver was created", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters