Skip to content

Commit

Permalink
Remove the NGOHUB_ORG_OVERWRITE variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Jul 9, 2024
1 parent 5eaddb2 commit f4c613a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ AWS_COGNITO_USER_POOL_ID=eu-west-abcdef_0123456789
NGOHUB_API_HOST=api-staging.ngohub.ro
NGOHUB_API_ACCOUNT=
NGOHUB_API_KEY=
NGOHUB_ORG_OVERWRITE=False
4 changes: 1 addition & 3 deletions backend/civil_society_vote/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@
RECAPTCHA_PRIVATE_KEY=(str, ""),
# TODO Settings Cleanup:
ANALYTICS_ENABLED=(bool, False),
NGOHUB_ORG_OVERWRITE=(bool, False),
ORGANIZATION_UPDATE_THRESHOLD=(int, 10),
ENABLE_ORG_REGISTRATION_FORM=(bool, False),
CURRENT_EDITION_YEAR=(int, 2024),
Expand Down Expand Up @@ -579,8 +578,7 @@ def show_toolbar(request):
AWS_COGNITO_CLIENT_ID = env("AWS_COGNITO_CLIENT_ID")
AWS_COGNITO_CLIENT_SECRET = env("AWS_COGNITO_CLIENT_SECRET")

# Allow Organization data to overwrite from VotONG forms (should be False)
NGOHUB_ORG_OVERWRITE = env("NGOHUB_ORG_OVERWRITE")
# How often to check for updated organizations
ORGANIZATION_UPDATE_THRESHOLD = env.int("ORGANIZATION_UPDATE_THRESHOLD", 10)

# Enable the organization registration form in order to sidestep NGO Hub (should be False)
Expand Down
2 changes: 1 addition & 1 deletion backend/hub/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def is_fully_editable(self):
"""
Organizations managed elsewhere (ie: on NGO Hub) should not be fully editable here
"""
if self.ngohub_org_id and not settings.NGOHUB_ORG_OVERWRITE:
if self.ngohub_org_id:
return False
return True

Expand Down

0 comments on commit f4c613a

Please sign in to comment.