-
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.
Merge branch '33354-unicef-cash-unfunded' of github.com:unicef/etools…
… into ch33354-UNICEF-cash-unfunded # Conflicts: # src/etools/applications/partners/locale/ar/LC_MESSAGES/django.po # src/etools/applications/partners/locale/es/LC_MESSAGES/django.mo # src/etools/applications/partners/locale/es/LC_MESSAGES/django.po # src/etools/applications/partners/locale/fr/LC_MESSAGES/django.mo # src/etools/applications/partners/locale/fr/LC_MESSAGES/django.po # src/etools/applications/partners/locale/pt/LC_MESSAGES/django.mo # src/etools/applications/partners/locale/pt/LC_MESSAGES/django.po # src/etools/applications/partners/locale/ru/LC_MESSAGES/django.mo # src/etools/applications/partners/locale/ru/LC_MESSAGES/django.po # src/etools/applications/partners/models.py # src/etools/applications/reports/models.py
- Loading branch information
Showing
127 changed files
with
4,539 additions
and
1,230 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
VERSION = __version__ = '9.12.1' | ||
VERSION = __version__ = '10.1.1' | ||
NAME = 'eTools' |
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
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
51 changes: 51 additions & 0 deletions
51
src/etools/applications/audit/migrations/0024_audit_year_of_audit.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,51 @@ | ||
# Generated by Django 3.2.6 on 2023-04-14 07:53 | ||
|
||
from django.db import migrations, models | ||
from django.db.models import F, Subquery, OuterRef | ||
from django.db.models.functions import Extract | ||
from django.utils import timezone | ||
|
||
import etools.applications.audit.models | ||
|
||
|
||
def fill_year_of_audit(apps, schema_editor): | ||
Engagement = apps.get_model('audit', 'Engagement') | ||
Engagement.objects.filter( | ||
engagement_type='audit', | ||
date_of_draft_report_to_ip__isnull=False, | ||
).update( | ||
year_of_audit=Subquery( | ||
Engagement.objects.filter( | ||
pk=OuterRef('pk') | ||
).annotate( | ||
end_year=Extract("date_of_draft_report_to_ip", "year") | ||
).values('end_year')[:1] | ||
) | ||
) | ||
Engagement.objects.filter( | ||
engagement_type='audit', | ||
date_of_draft_report_to_ip__isnull=True, | ||
).update( | ||
year_of_audit=timezone.now().year, | ||
) | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('audit', '0023_auto_20220415_1130'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='engagement', | ||
name='year_of_audit', | ||
field=models.PositiveSmallIntegerField(default=1, null=True), | ||
), | ||
migrations.RunPython(fill_year_of_audit, migrations.RunPython.noop), | ||
migrations.AlterField( | ||
model_name='engagement', | ||
name='year_of_audit', | ||
field=models.PositiveSmallIntegerField(default=etools.applications.audit.models.get_current_year, null=True), | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
src/etools/applications/audit/migrations/0025_alter_engagement_year_of_audit.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,19 @@ | ||
# Generated by Django 3.2.6 on 2023-04-17 09:36 | ||
|
||
from django.db import migrations, models | ||
import etools.applications.audit.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('audit', '0024_audit_year_of_audit'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='engagement', | ||
name='year_of_audit', | ||
field=models.PositiveSmallIntegerField(db_index=True, default=etools.applications.audit.models.get_current_year, null=True), | ||
), | ||
] |
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
41 changes: 41 additions & 0 deletions
41
src/etools/applications/audit/migrations/0028_audit_year_of_audit_recalculate.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,41 @@ | ||
# Generated by Django 3.2.6 on 2023-04-14 07:53 | ||
|
||
from django.db import migrations, models | ||
from django.db.models import F, Subquery, OuterRef | ||
from django.db.models.functions import Extract | ||
from django.utils import timezone | ||
|
||
import etools.applications.audit.models | ||
|
||
|
||
def fill_year_of_audit_for_special_audit(apps, schema_editor): | ||
Engagement = apps.get_model('audit', 'Engagement') | ||
Engagement.objects.filter( | ||
engagement_type='sa', | ||
date_of_draft_report_to_ip__isnull=False, | ||
).update( | ||
year_of_audit=Subquery( | ||
Engagement.objects.filter( | ||
pk=OuterRef('pk') | ||
).annotate( | ||
end_year=Extract("date_of_draft_report_to_ip", "year") | ||
).values('end_year')[:1] | ||
) | ||
) | ||
Engagement.objects.filter( | ||
engagement_type='sa', | ||
date_of_draft_report_to_ip__isnull=True, | ||
).update( | ||
year_of_audit=timezone.now().year, | ||
) | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('audit', '0027_engagement_staff_members'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(fill_year_of_audit_for_special_audit, migrations.RunPython.noop), | ||
] |
28 changes: 28 additions & 0 deletions
28
src/etools/applications/audit/migrations/0028_auto_20230515_0551.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,28 @@ | ||
# Generated by Django 3.2.6 on 2023-05-15 05:51 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('audit', '0027_engagement_staff_members'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='microassessment', | ||
name='questionnaire_version', | ||
field=models.PositiveSmallIntegerField(default=1), | ||
), | ||
migrations.AlterField( | ||
model_name='microassessment', | ||
name='questionnaire_version', | ||
field=models.PositiveSmallIntegerField(default=2), | ||
), | ||
migrations.AlterField( | ||
model_name='riskcategory', | ||
name='header', | ||
field=models.CharField(max_length=500, verbose_name='Header'), | ||
), | ||
] |
14 changes: 14 additions & 0 deletions
14
src/etools/applications/audit/migrations/0029_merge_20230523_1049.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,14 @@ | ||
# Generated by Django 3.2.6 on 2023-05-23 10:49 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('audit', '0028_audit_year_of_audit_recalculate'), | ||
('audit', '0028_auto_20230515_0551'), | ||
] | ||
|
||
operations = [ | ||
] |
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
Oops, something went wrong.