Skip to content

Commit

Permalink
Renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
jingcheng16 committed Dec 18, 2024
1 parent 8b0ce94 commit 9bcfbfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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 @@ -409,16 +409,16 @@ def get_primary_keys(self):


class TwoFactorAuthResource(ODataEnterpriseReportResource):
domain_not_having_2fa_enforced = fields.CharField()
domain_without_2fa = fields.CharField()

REPORT_SLUG = EnterpriseReport.TWO_FACTOR_AUTH

def dehydrate(self, bundle):
bundle.data['domain_not_having_2fa_enforced'] = bundle.obj[0]
bundle.data['domain_without_2fa'] = bundle.obj[0]
return bundle

def get_primary_keys(self):
return ('domain_not_having_2fa_enforced',)
return ('domain_without_2fa',)


class CommCareVersionComplianceResource(ODataEnterpriseReportResource):
Expand Down
4 changes: 2 additions & 2 deletions corehq/apps/enterprise/enterprise.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,11 +568,11 @@ def rows_for_domain(self, domain_obj):

class Enterprise2FAReport(EnterpriseReport):
title = gettext_lazy('Two Factor Authentication')
total_description = gettext_lazy('# of Project Spaces not having 2FA enforced')
total_description = gettext_lazy('# of Project Spaces without 2FA')

@property
def headers(self):
return [_('Project Space not having 2FA enforced'),]
return [_('Project Space without 2FA'),]

def total_for_domain(self, domain_obj):
if domain_obj.two_factor_auth:
Expand Down

0 comments on commit 9bcfbfa

Please sign in to comment.