Skip to content

Commit

Permalink
Merge branch 'release/3.53.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
domdinicola committed Mar 20, 2023
2 parents 1f2fef1 + 85e146f commit 41e24c4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
7 changes: 6 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
3.53
3.53.1
------
* fixed MR PV
* fixed travel action point
* fixed intervention-activity

3.53
------
* fixed celery accept content type

3.52
Expand Down
2 changes: 1 addition & 1 deletion src/etools_datamart/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NAME = 'etools-datamart'
VERSION = __version__ = '3.53'
VERSION = __version__ = '3.53.1'
__author__ = ''
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ class Meta:
class Options:
source = ReportsInterventionactivityitem
depends = (Intervention,)
mapping = dict()
mapping = dict(
activity='activity.name',
activity_details='activity.context_details',
activity_unicef_cash='activity.unicef_cash',
activity_cso_cash='activity.cso_cash',
activity_code='activity.code',
ll_name='activity.result.name',
ll_code='activity.result.code'
)
queryset = lambda: ReportsInterventionactivityitem.objects.select_related(
'activity__result__result_link__intervention__agreement__partner'
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from etools_datamart.apps.sources.etools.models import (
AuditSpotcheck,
PartnersPartnerorganization,
PartnersPartnerplannedvisits,
PartnersPlannedengagement,
)

from .consts import PartnerOrganizationConst, PartnerType
Expand Down Expand Up @@ -65,8 +65,8 @@ def min_req_spot_checks(self):
return 0

try:
self.PartnersPartnerplannedvisits_partner
except PartnersPartnerplannedvisits.DoesNotExist:
self.PartnersPlannedengagement_partner
except PartnersPlannedengagement.DoesNotExist:
pass
else:
if self.planned_engagement.scheduled_audit:
Expand Down

0 comments on commit 41e24c4

Please sign in to comment.