-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix NS directory issue and capacity issue
Delete CountryDirectory
- Loading branch information
Showing
4 changed files
with
70 additions
and
2 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
23 changes: 23 additions & 0 deletions
23
api/migrations/0212_alter_countrycapacitystrengthening_unique_together.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,23 @@ | ||
# Generated by Django 4.2.13 on 2024-07-12 06:26 | ||
|
||
from django.db import migrations | ||
|
||
|
||
def delete_ids(apps, schema_editor): | ||
CountryCapacityStrengthening = apps.get_model("api", "CountryCapacityStrengthening") | ||
CountryCapacityStrengthening.objects.all().delete() | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("api", "0211_alter_countrydirectory_unique_together_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(delete_ids, migrations.RunPython.noop), | ||
migrations.AlterUniqueTogether( | ||
name="countrycapacitystrengthening", | ||
unique_together={("assessment_type", "assessment_code")}, | ||
), | ||
] |
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