Skip to content

Commit

Permalink
change project_space to domain because all other resources use domain
Browse files Browse the repository at this point in the history
  • Loading branch information
jingcheng16 committed Dec 18, 2024
1 parent 4e7214f commit 3ebc5d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions corehq/apps/enterprise/api/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,18 +423,18 @@ def get_primary_keys(self):

class CommCareVersionComplianceResource(ODataEnterpriseReportResource):
mobile_worker = fields.CharField()
project_space = fields.CharField()
domain = fields.CharField()
latest_version_available_at_submission = fields.CharField()
version_in_use = fields.CharField()

REPORT_SLUG = EnterpriseReport.COMMCARE_VERSION_COMPLIANCE

def dehydrate(self, bundle):
bundle.data['mobile_worker'] = bundle.obj[0]
bundle.data['project_space'] = bundle.obj[1]
bundle.data['domain'] = bundle.obj[1]
bundle.data['latest_version_available_at_submission'] = bundle.obj[2]
bundle.data['version_in_use'] = bundle.obj[3]
return bundle

def get_primary_keys(self):
return ('mobile_worker', 'project_space',)
return ('mobile_worker', 'domain',)

0 comments on commit 3ebc5d3

Please sign in to comment.