mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-13 16:04:49 +02:00
Fix migrations
This commit is contained in:
parent
ca1e29a226
commit
fef39c4cbe
2 changed files with 7 additions and 18 deletions
|
@ -9,7 +9,7 @@ import logging
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from typing import Dict, List, Tuple
|
from typing import Dict
|
||||||
|
|
||||||
from registrar.models.transition_domain import TransitionDomain
|
from registrar.models.transition_domain import TransitionDomain
|
||||||
|
|
||||||
|
@ -321,10 +321,7 @@ class LoadExtraTransitionDomain:
|
||||||
and transition_domain.federal_agency.strip() != ""
|
and transition_domain.federal_agency.strip() != ""
|
||||||
)
|
)
|
||||||
|
|
||||||
if (
|
if not isinstance(info.active, str) or not info.active.lower() == "y":
|
||||||
not isinstance(info.active, str) or
|
|
||||||
not info.active.lower() == "y"
|
|
||||||
):
|
|
||||||
self.parse_logs.create_log_item(
|
self.parse_logs.create_log_item(
|
||||||
EnumFilenames.DOMAIN_ADHOC,
|
EnumFilenames.DOMAIN_ADHOC,
|
||||||
LogCode.ERROR,
|
LogCode.ERROR,
|
||||||
|
@ -334,10 +331,7 @@ class LoadExtraTransitionDomain:
|
||||||
)
|
)
|
||||||
return transition_domain
|
return transition_domain
|
||||||
|
|
||||||
if (
|
if not isinstance(info.isfederal, str) or not info.isfederal.lower() == "y":
|
||||||
not isinstance(info.isfederal, str) or
|
|
||||||
not info.isfederal.lower() == "y"
|
|
||||||
):
|
|
||||||
self.parse_logs.create_log_item(
|
self.parse_logs.create_log_item(
|
||||||
EnumFilenames.DOMAIN_ADHOC,
|
EnumFilenames.DOMAIN_ADHOC,
|
||||||
LogCode.ERROR,
|
LogCode.ERROR,
|
||||||
|
@ -395,10 +389,7 @@ class LoadExtraTransitionDomain:
|
||||||
|
|
||||||
# Check if this domain_type is active or not.
|
# Check if this domain_type is active or not.
|
||||||
# If not, we don't want to add this.
|
# If not, we don't want to add this.
|
||||||
if (
|
if not isinstance(info.active, str) or not info.active.lower() == "y":
|
||||||
not isinstance(info.active, str) or
|
|
||||||
not info.active.lower() == "y"
|
|
||||||
):
|
|
||||||
self.parse_logs.create_log_item(
|
self.parse_logs.create_log_item(
|
||||||
EnumFilenames.DOMAIN_ADHOC,
|
EnumFilenames.DOMAIN_ADHOC,
|
||||||
LogCode.ERROR,
|
LogCode.ERROR,
|
||||||
|
@ -808,9 +799,7 @@ class ExtraTransitionDomain:
|
||||||
self.file_data = self.populate_file_data(pattern_map_params)
|
self.file_data = self.populate_file_data(pattern_map_params)
|
||||||
|
|
||||||
# TODO - revise comment
|
# TODO - revise comment
|
||||||
def populate_file_data(
|
def populate_file_data(self, pattern_map_params):
|
||||||
self, pattern_map_params
|
|
||||||
):
|
|
||||||
"""Populates the self.file_data field given a set
|
"""Populates the self.file_data field given a set
|
||||||
of tuple params.
|
of tuple params.
|
||||||
|
|
||||||
|
@ -981,7 +970,7 @@ class ExtraTransitionDomain:
|
||||||
)
|
)
|
||||||
dict_data = {}
|
dict_data = {}
|
||||||
break
|
break
|
||||||
|
|
||||||
row_id = self._grab_row_id(row, id_field, file, dataclass_type)
|
row_id = self._grab_row_id(row, id_field, file, dataclass_type)
|
||||||
|
|
||||||
# To maintain pairity with the load_transition_domain
|
# To maintain pairity with the load_transition_domain
|
||||||
|
|
|
@ -5,7 +5,7 @@ from django.db import migrations, models
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
dependencies = [
|
dependencies = [
|
||||||
("registrar", "0043_domain_expiration_date"),
|
("registrar", "0044_create_groups_v04"),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
Loading…
Add table
Add a link
Reference in a new issue