Skip to content

Commit

Permalink
Merge branch 'dev' into feat/nc-medicaid-sub-categories
Browse files Browse the repository at this point in the history
  • Loading branch information
msrezaie committed Oct 30, 2024
2 parents e99cdd4 + fda4302 commit 3405cbb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion screener/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def sort_first(program):
caps.append({"programs": cap.programs, "cap": cap.cap})

category_map[category.id] = {
"id": category.external_name,
"external_name": category.external_name,
"icon": category.icon,
"name": default_message(category.name),
"description": default_message(category.description),
Expand Down
12 changes: 10 additions & 2 deletions translations/bulk_import_translations.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
from translations.model_data import ModelDataController
from .models import Translation
from programs.models import Program, Navigator, UrgentNeed, Document, WarningMessage, TranslationOverride
from programs.models import (
Program,
Navigator,
ProgramCategory,
UrgentNeed,
Document,
WarningMessage,
TranslationOverride,
)
from django.db import transaction
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from tqdm import trange
from decouple import config

Expand All @@ -15,6 +22,7 @@
"Document": Document,
"WarningMessage": WarningMessage,
"TranslationOverride": TranslationOverride,
"ProgramCategory": ProgramCategory,
}

TRANSLATED_MODELS = TRANSLATED_MODEL_MAP.values()
Expand Down

0 comments on commit 3405cbb

Please sign in to comment.