mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-29 20:43:10 +02:00
Linter
This commit is contained in:
parent
4b90ff833c
commit
cdd34936b2
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ class CreateOrUpdateOrganizationTypeHelper:
|
||||||
self.generic_org_to_org_map = generic_org_to_org_map
|
self.generic_org_to_org_map = generic_org_to_org_map
|
||||||
self.election_org_to_generic_org_map = election_org_to_generic_org_map
|
self.election_org_to_generic_org_map = election_org_to_generic_org_map
|
||||||
|
|
||||||
def create_or_update_organization_type(self, force_update = False):
|
def create_or_update_organization_type(self, force_update=False):
|
||||||
"""The organization_type field on DomainRequest and DomainInformation is consituted from the
|
"""The organization_type field on DomainRequest and DomainInformation is consituted from the
|
||||||
generic_org_type and is_election_board fields. To keep the organization_type
|
generic_org_type and is_election_board fields. To keep the organization_type
|
||||||
field up to date, we need to update it before save based off of those field
|
field up to date, we need to update it before save based off of those field
|
||||||
|
@ -97,7 +97,7 @@ class CreateOrUpdateOrganizationTypeHelper:
|
||||||
# Update the field
|
# Update the field
|
||||||
self._update_fields(organization_type_needs_update, generic_org_type_needs_update)
|
self._update_fields(organization_type_needs_update, generic_org_type_needs_update)
|
||||||
|
|
||||||
def _handle_existing_instance(self, force_update_when_no_are_changes_found = False):
|
def _handle_existing_instance(self, force_update_when_no_are_changes_found=False):
|
||||||
# == Init variables == #
|
# == Init variables == #
|
||||||
# Instance is already in the database, fetch its current state
|
# Instance is already in the database, fetch its current state
|
||||||
current_instance = self.sender.objects.get(id=self.instance.id)
|
current_instance = self.sender.objects.get(id=self.instance.id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue