diff --git a/screener/views.py b/screener/views.py index 958862a6..2ac1c345 100644 --- a/screener/views.py +++ b/screener/views.py @@ -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), diff --git a/translations/bulk_import_translations.py b/translations/bulk_import_translations.py index d4834067..5cfa34b6 100644 --- a/translations/bulk_import_translations.py +++ b/translations/bulk_import_translations.py @@ -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 @@ -15,6 +22,7 @@ "Document": Document, "WarningMessage": WarningMessage, "TranslationOverride": TranslationOverride, + "ProgramCategory": ProgramCategory, } TRANSLATED_MODELS = TRANSLATED_MODEL_MAP.values()