-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new REPLACED status for SignedAgreements
This status indicates CDSAs that were replaced by newer agreements. We do not maintain a link to the CDSA that it is replacing in django; that is handled in outside pre-tracking.
- Loading branch information
Showing
3 changed files
with
54 additions
and
15 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
primed/cdsa/migrations/0011_signedagreement_add_replaced_status.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,46 @@ | ||
# Generated by Django 4.2.8 on 2024-01-18 23:49 | ||
|
||
from django.db import migrations | ||
import model_utils.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("cdsa", "0010_alter_historicalsignedagreement_status_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="historicalsignedagreement", | ||
name="status", | ||
field=model_utils.fields.StatusField( | ||
choices=[ | ||
("active", "Active"), | ||
("withdrawn", "Withdrawn"), | ||
("lapsed", "Lapsed"), | ||
("replaced", "Replaced"), | ||
], | ||
default="active", | ||
max_length=100, | ||
no_check_for_status=True, | ||
verbose_name="status", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="signedagreement", | ||
name="status", | ||
field=model_utils.fields.StatusField( | ||
choices=[ | ||
("active", "Active"), | ||
("withdrawn", "Withdrawn"), | ||
("lapsed", "Lapsed"), | ||
("replaced", "Replaced"), | ||
], | ||
default="active", | ||
max_length=100, | ||
no_check_for_status=True, | ||
verbose_name="status", | ||
), | ||
), | ||
] |
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