Skip to content

Commit 2a0c8ec

Browse files
add program.biometric_deduplication_enabled
1 parent 79628a7 commit 2a0c8ec

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

src/country_workspace/contrib/hope/sync/context_programs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def prepare_program_defaults(record: dict[str, Any]) -> dict[str, Any] | None:
112112
"code": record["programme_code"],
113113
"status": record["status"],
114114
"sector": record["sector"],
115+
"biometric_deduplication_enabled": record["biometric_deduplication_enabled"],
115116
"country_office": office,
116117
"beneficiary_group": bg,
117118
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated by Django 5.2.9 on 2026-01-23 08:43
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
dependencies = [
8+
("country_workspace", "0042_alter_transformer_value_transformations"),
9+
]
10+
11+
operations = [
12+
migrations.AddField(
13+
model_name="program",
14+
name="biometric_deduplication_enabled",
15+
field=models.BooleanField(default=False, help_text="Is biometric deduplication enabled for this program?"),
16+
),
17+
]

src/country_workspace/models/program.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ class Program(BaseModel):
116116
blank=True,
117117
help_text=_('Internal metadata (e.g. "default_fields" for household/individual defaults).'),
118118
)
119+
biometric_deduplication_enabled = models.BooleanField(
120+
default=False,
121+
help_text="Is biometric deduplication enabled for this program?",
122+
)
119123

120124
def __str__(self) -> str:
121125
return self.name

0 commit comments

Comments
 (0)